summaryrefslogtreecommitdiffstats
path: root/llvm/test/Feature/OperandBundles/function-attrs.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/Feature/OperandBundles/function-attrs.ll')
-rw-r--r--llvm/test/Feature/OperandBundles/function-attrs.ll7
1 files changed, 5 insertions, 2 deletions
diff --git a/llvm/test/Feature/OperandBundles/function-attrs.ll b/llvm/test/Feature/OperandBundles/function-attrs.ll
index 808f396fed8..6e1b2550399 100644
--- a/llvm/test/Feature/OperandBundles/function-attrs.ll
+++ b/llvm/test/Feature/OperandBundles/function-attrs.ll
@@ -6,7 +6,7 @@ declare void @f_readnone() readnone
define void @test_0(i32* %x) {
; FunctionAttrs must not infer readonly / readnone for %x
-; CHECK-LABEL: define void @test_0(i32* %x) {
+; CHECK-LABEL: define void @test_0(i32* %x) #2 {
entry:
; CHECK: call void @f_readonly() [ "foo"(i32* %x) ]
call void @f_readonly() [ "foo"(i32* %x) ]
@@ -16,7 +16,7 @@ define void @test_0(i32* %x) {
define void @test_1(i32* %x) {
; FunctionAttrs must not infer readonly / readnone for %x
-; CHECK-LABEL: define void @test_1(i32* %x) {
+; CHECK-LABEL: define void @test_1(i32* %x) #2 {
entry:
; CHECK: call void @f_readnone() [ "foo"(i32* %x) ]
call void @f_readnone() [ "foo"(i32* %x) ]
@@ -31,3 +31,6 @@ define void @test_2(i32* %x) {
call void @f_readonly() [ "deopt"(i32* %x) ]
ret void
}
+
+; CHECK: attributes #2 = { nofree }
+
OpenPOWER on IntegriCloud