brintos

brintos / llvm-project-archived public Read only

0
0
Text · 476 B · 0cf73b5 Raw
16 lines · plain
1; RUN: opt -passes=indvars -S < %s | FileCheck %s2 3declare { i8, i1 } @llvm.smul.with.overflow.i8(i8, i8) nounwind readnone4 5define i1 @test1(i8 %x) {6 entry:7; CHECK-LABEL: @test18  %rem = srem i8 %x, 159  %t = call { i8, i1 } @llvm.smul.with.overflow.i8(i8 %rem, i8 %rem)10; CHECK: %t = call { i8, i1 } @llvm.smul.with.overflow.i8(i8 %rem, i8 %rem)11; CHECK: %obit = extractvalue { i8, i1 } %t, 112; CHECK: ret i1 %obit13  %obit = extractvalue { i8, i1 } %t, 114  ret i1 %obit15}16