• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; This test verifies that no optimizations are performed on the @f function
2; when the -opt-bisect-limit=0 option is used.  In particular, the X86
3; instruction selector will optimize the cmp instruction to a sub instruction
4; if it is not run in -O0 mode.
5
6; RUN: llc -O3 -opt-bisect-limit=0 -o - %s | FileCheck %s
7
8target triple = "x86_64-unknown-linux-gnu"
9
10define void @f() {
11entry:
12  %cmp = icmp slt i32 undef, 8
13  br i1 %cmp, label %middle, label %end
14
15middle:
16  br label %end
17
18end:
19  ret void
20}
21
22; CHECK: cmpl $8, %eax
23