[llvm-commits] [llvm] r116024 - /llvm/trunk/test/MC/ARM/simple-encoding.ll

Jim Grosbach grosbach at apple.com
Thu Oct 7 17:47:59 PDT 2010


Author: grosbach
Date: Thu Oct  7 19:47:59 2010
New Revision: 116024

URL: http://llvm.org/viewvc/llvm-project?rev=116024&view=rev
Log:
Add test file for simple ARM binary encodings with MC

Added:
    llvm/trunk/test/MC/ARM/simple-encoding.ll

Added: llvm/trunk/test/MC/ARM/simple-encoding.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/ARM/simple-encoding.ll?rev=116024&view=auto
==============================================================================
--- llvm/trunk/test/MC/ARM/simple-encoding.ll (added)
+++ llvm/trunk/test/MC/ARM/simple-encoding.ll Thu Oct  7 19:47:59 2010
@@ -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





More information about the llvm-commits mailing list