summaryrefslogtreecommitdiff
path: root/test/CodeGen/NVPTX/inline-asm.ll
diff options
context:
space:
mode:
authorJustin Holewinski <jholewinski@nvidia.com>2013-08-24 01:17:23 +0000
committerJustin Holewinski <jholewinski@nvidia.com>2013-08-24 01:17:23 +0000
commit30632d2fbb3c46e552a68aa7961b12eb44cece01 (patch)
tree0498806508d90f0dbe13a9302ba53ed5b304b8ab /test/CodeGen/NVPTX/inline-asm.ll
parent6b6a2ac6ca5aada4ff3d6882e0570338baed5a8b (diff)
downloadllvm-30632d2fbb3c46e552a68aa7961b12eb44cece01.tar.gz
llvm-30632d2fbb3c46e552a68aa7961b12eb44cece01.tar.bz2
llvm-30632d2fbb3c46e552a68aa7961b12eb44cece01.tar.xz
[NVPTX] Re-enable assembly printing support for inline assembly
This support was removed by accident during the MC conversion git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189160 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/NVPTX/inline-asm.ll')
-rw-r--r--test/CodeGen/NVPTX/inline-asm.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CodeGen/NVPTX/inline-asm.ll b/test/CodeGen/NVPTX/inline-asm.ll
new file mode 100644
index 0000000000..d76eb4239e
--- /dev/null
+++ b/test/CodeGen/NVPTX/inline-asm.ll
@@ -0,0 +1,9 @@
+; RUN: llc < %s -march=nvptx -mcpu=sm_20 | FileCheck %s
+
+
+define float @test(float %x) {
+entry:
+; CHECK: ex2.approx.ftz.f32 %f{{[0-9]+}}, %f{{[0-9]+}}
+ %0 = call float asm "ex2.approx.ftz.f32 $0, $1;", "=f,f"(float %x)
+ ret float %0
+}