1 # RUN: llc -o - %s -mtriple=i686-- -mcpu=ivybridge --run-pass X86CondBrFolding | FileCheck %s
3 # Test wrong assertion when meet SUB32ri with global address
4 # in X86CondBrFoldingiPass
6 @img2buf_normal = external global i32
7 define void @func() { ret void }
11 # CHECK: %2:gr32 = SUB32ri %1, @img2buf_normal, implicit-def $eflags
14 tracksRegLiveness: true
19 %2:gr32 = MOV32rm %1:gr32, 1, $noreg, 850256, $noreg
20 %3:gr32 = SUB32ri %2:gr32, @img2buf_normal, implicit-def $eflags
21 JCC_1 %bb.2, 4, implicit $eflags
28 $eax = MOV32rr %3:gr32