AArch64: add AArch64-specific test for 'c' and 'n'.
authorTim Northover <tnorthover@apple.com>
Tue, 27 May 2014 16:50:03 +0000 (16:50 +0000)
committerTim Northover <tnorthover@apple.com>
Tue, 27 May 2014 16:50:03 +0000 (16:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209664 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/AArch64/asm-large-immediate.ll [new file with mode: 0644]

diff --git a/test/CodeGen/AArch64/asm-large-immediate.ll b/test/CodeGen/AArch64/asm-large-immediate.ll
new file mode 100644 (file)
index 0000000..05e4ddd
--- /dev/null
@@ -0,0 +1,10 @@
+; RUN: llc -march=aarch64 -no-integrated-as < %s | FileCheck %s
+
+define void @test() {
+entry:
+; CHECK: /* result: 68719476738 */
+        tail call void asm sideeffect "/* result: ${0:c} */", "i,~{dirflag},~{fpsr},~{flags}"( i64 68719476738 )
+; CHECK: /* result: -68719476738 */
+        tail call void asm sideeffect "/* result: ${0:n} */", "i,~{dirflag},~{fpsr},~{flags}"( i64 68719476738 )
+        ret void
+}