brintos

brintos / llvm-project-archived public Read only

0
0
Text · 526 B · 78a5f20 Raw
23 lines · plain
1; This test verifies that no optimizations are performed on the @f function2; when the -opt-bisect-limit=0 option is used.  In particular, the X863; instruction selector will optimize the cmp instruction to a sub instruction4; if it is not run in -O0 mode.5 6; RUN: llc -O3 -opt-bisect-limit=0 -o - %s | FileCheck %s7 8target triple = "x86_64-unknown-linux-gnu"9 10define void @f() {11entry:12  %cmp = icmp slt i32 undef, 813  br i1 %cmp, label %middle, label %end14 15middle:16  br label %end17 18end:19  ret void20}21 22; CHECK: cmpl $8, %eax23