summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/NVPTX/function-align.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/CodeGen/NVPTX/function-align.ll')
-rw-r--r--llvm/test/CodeGen/NVPTX/function-align.ll7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/NVPTX/function-align.ll b/llvm/test/CodeGen/NVPTX/function-align.ll
new file mode 100644
index 00000000000..e7abfb128f5
--- /dev/null
+++ b/llvm/test/CodeGen/NVPTX/function-align.ll
@@ -0,0 +1,7 @@
+; RUN: llc < %s -march=nvptx -mcpu=sm_20 | FileCheck %s
+
+; CHECK-NOT: .align 2
+define ptx_device void @foo() align 2 {
+; CHECK-LABEL: .func foo
+ ret void
+}
OpenPOWER on IntegriCloud