This should always be signed chars, so use int8_t. This fixes a miscompile when
[llvm/stm8.git] / test / CodeGen / X86 / br-fold.ll
blob8af3bd1bc229841675738b075a4e61313a5b1507
1 ; RUN: llc -march=x86-64 < %s | FileCheck %s
3 ; CHECK: orq
4 ; CHECK-NEXT: jne
6 @_ZN11xercesc_2_513SchemaSymbols21fgURI_SCHEMAFORSCHEMAE = external constant [33 x i16], align 32 ; <[33 x i16]*> [#uses=1]
7 @_ZN11xercesc_2_56XMLUni16fgNotationStringE = external constant [9 x i16], align 16 ; <[9 x i16]*> [#uses=1]
9 define fastcc void @foo() {
10 entry:
11   br i1 icmp eq (i64 or (i64 ptrtoint ([33 x i16]* @_ZN11xercesc_2_513SchemaSymbols21fgURI_SCHEMAFORSCHEMAE to i64),
12                          i64 ptrtoint ([9 x i16]* @_ZN11xercesc_2_56XMLUni16fgNotationStringE to i64)), i64 0),
13      label %bb8.i329, label %bb4.i.i318.preheader
15 bb4.i.i318.preheader:                             ; preds = %bb6
16   unreachable
18 bb8.i329:                                         ; preds = %bb6
19   unreachable