From 30632d2fbb3c46e552a68aa7961b12eb44cece01 Mon Sep 17 00:00:00 2001 From: Justin Holewinski Date: Sat, 24 Aug 2013 01:17:23 +0000 Subject: [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 --- test/CodeGen/NVPTX/inline-asm.ll | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 test/CodeGen/NVPTX/inline-asm.ll (limited to 'test/CodeGen/NVPTX/inline-asm.ll') 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 +} -- cgit v1.2.3