Home | History | Annotate | Download | only in LowerBitSets
      1 ; RUN: opt -S -lowerbitsets < %s | FileCheck %s
      2 
      3 target datalayout = "e-p:32:32"
      4 
      5 ; CHECK: @{{[0-9]+}} = alias
      6 ; CHECK: @{{[0-9]+}} = alias
      7 @0 = constant i32 1
      8 @1 = constant [2 x i32] [i32 2, i32 3]
      9 
     10 !0 = !{!"bitset1", i32* @0, i32 0}
     11 !1 = !{!"bitset1", [2 x i32]* @1, i32 4}
     12 
     13 !llvm.bitsets = !{ !0, !1 }
     14 
     15 declare i1 @llvm.bitset.test(i8* %ptr, metadata %bitset) nounwind readnone
     16 
     17 define i1 @foo(i8* %p) {
     18   %x = call i1 @llvm.bitset.test(i8* %p, metadata !"bitset1")
     19   ret i1 %x
     20 }
     21