diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/Bitcode/attributes.ll | 12 | ||||
-rw-r--r-- | test/Feature/optnone.ll | 12 |
2 files changed, 22 insertions, 2 deletions
diff --git a/test/Bitcode/attributes.ll b/test/Bitcode/attributes.ll index 92f892a..2ff87d6 100644 --- a/test/Bitcode/attributes.ll +++ b/test/Bitcode/attributes.ll @@ -203,7 +203,13 @@ define void @f34() ; CHECK: define void @f34() { call void @nobuiltin() nobuiltin -; CHECK: call void @nobuiltin() #23 +; CHECK: call void @nobuiltin() #24 + ret void; +} + +define void @f35() optnone +; CHECK: define void @f35() #23 +{ ret void; } @@ -230,4 +236,6 @@ define void @f34() ; CHECK: attributes #20 = { "cpu"="cortex-a8" } ; CHECK: attributes #21 = { sspstrong } ; CHECK: attributes #22 = { minsize } -; CHECK: attributes #23 = { nobuiltin } +; CHECK: attributes #23 = { optnone } +; CHECK: attributes #24 = { nobuiltin } + diff --git a/test/Feature/optnone.ll b/test/Feature/optnone.ll new file mode 100644 index 0000000..ec1d723 --- /dev/null +++ b/test/Feature/optnone.ll @@ -0,0 +1,12 @@ +; RUN: llvm-as < %s | llvm-dis | FileCheck %s + +; Check for the presence of attribute noopt in the disassembly. + +; CHECK: @foo() #0 +define void @foo() #0 { + ret void +} + +; CHECK: attributes #0 = { optnone } +attributes #0 = { optnone } + |