summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/DebugIR/simple-addrspace.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/Transforms/DebugIR/simple-addrspace.ll')
-rw-r--r--llvm/test/Transforms/DebugIR/simple-addrspace.ll13
1 files changed, 13 insertions, 0 deletions
diff --git a/llvm/test/Transforms/DebugIR/simple-addrspace.ll b/llvm/test/Transforms/DebugIR/simple-addrspace.ll
new file mode 100644
index 00000000000..6bea9b269f5
--- /dev/null
+++ b/llvm/test/Transforms/DebugIR/simple-addrspace.ll
@@ -0,0 +1,13 @@
+; RUN: opt -debug-ir -S %s -o - | FileCheck %s
+
+target datalayout = "e-p:64:64:64-p1:16:16:16"
+
+define void @foo(i32 addrspace(1)*) nounwind {
+ ret void
+}
+
+; Make sure the pointer size is 16
+
+; CHECK: metadata !"i32 addrspace(1)*", i32 0, i64 16, i64 2, i64 0, i32 0
+
+
OpenPOWER on IntegriCloud