diff options
author | Jim Grosbach <grosbach@apple.com> | 2010-10-08 00:47:59 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2010-10-08 00:47:59 +0000 |
commit | 0f448b5bf682c16c23c7ec239eb74f08d333e8c1 (patch) | |
tree | c32be821b8343368fa671f1039cc8675e77274e1 | |
parent | 58f38bfa2457d4729a5bdacde193dc7c7d25ac9e (diff) |
Add test file for simple ARM binary encodings with MC
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116024 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/MC/ARM/simple-encoding.ll | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/MC/ARM/simple-encoding.ll b/test/MC/ARM/simple-encoding.ll new file mode 100644 index 0000000000..af7cf71ade --- /dev/null +++ b/test/MC/ARM/simple-encoding.ll @@ -0,0 +1,18 @@ +;RUN: llc -mtriple=armv7-apple-darwin -show-mc-encoding < %s | FileCheck %s + + +;FIXME: Once the ARM integrated assembler is up and going, these sorts of tests +; should run on .s source files rather than using llc to generate the +; assembly. + +define i32 @foo(i32 %a, i32 %b) nounwind ssp { +entry: +; CHECK: foo +; CHECK: 0xf0,0x00,0xf0,0x07 +; CHECK: 0x1e,0xff,0x2f,0x01 + + tail call void @llvm.trap() + ret i32 undef +} + +declare void @llvm.trap() nounwind |