mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-12 06:06:19 +00:00
1c63fe6c61
The restriction on unnamed aliases was removed in r239921. Mostly reverts r239590, but we keep the test. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239923 91177308-0d34-0410-b5e6-96231b3b80d8
21 lines
483 B
LLVM
21 lines
483 B
LLVM
; RUN: opt -S -lowerbitsets < %s | FileCheck %s
|
|
|
|
target datalayout = "e-p:32:32"
|
|
|
|
; CHECK: @{{[0-9]+}} = alias
|
|
; CHECK: @{{[0-9]+}} = alias
|
|
@0 = constant i32 1
|
|
@1 = constant [2 x i32] [i32 2, i32 3]
|
|
|
|
!0 = !{!"bitset1", i32* @0, i32 0}
|
|
!1 = !{!"bitset1", [2 x i32]* @1, i32 4}
|
|
|
|
!llvm.bitsets = !{ !0, !1 }
|
|
|
|
declare i1 @llvm.bitset.test(i8* %ptr, metadata %bitset) nounwind readnone
|
|
|
|
define i1 @foo(i8* %p) {
|
|
%x = call i1 @llvm.bitset.test(i8* %p, metadata !"bitset1")
|
|
ret i1 %x
|
|
}
|