summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2014-05-27 16:50:03 +0000
committerTim Northover <tnorthover@apple.com>2014-05-27 16:50:03 +0000
commitde9402d345688886e26ca28b3071673413d0d622 (patch)
tree7198120cd8323b773a4c57df624571bde9af6cd8 /llvm/test/CodeGen
parente7b3d5dcb47b6f5d432686778d00878c76303600 (diff)
downloadbcm5719-llvm-de9402d345688886e26ca28b3071673413d0d622.tar.gz
bcm5719-llvm-de9402d345688886e26ca28b3071673413d0d622.zip
AArch64: add AArch64-specific test for 'c' and 'n'.
llvm-svn: 209664
Diffstat (limited to 'llvm/test/CodeGen')
-rw-r--r--llvm/test/CodeGen/AArch64/asm-large-immediate.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/AArch64/asm-large-immediate.ll b/llvm/test/CodeGen/AArch64/asm-large-immediate.ll
new file mode 100644
index 00000000000..05e4dddc7a7
--- /dev/null
+++ b/llvm/test/CodeGen/AArch64/asm-large-immediate.ll
@@ -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
+}
OpenPOWER on IntegriCloud