aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/ARM/Windows/read-only-data.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/ARM/Windows/read-only-data.ll')
-rw-r--r--test/CodeGen/ARM/Windows/read-only-data.ll15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/Windows/read-only-data.ll b/test/CodeGen/ARM/Windows/read-only-data.ll
new file mode 100644
index 0000000000..0ccb5ededf
--- /dev/null
+++ b/test/CodeGen/ARM/Windows/read-only-data.ll
@@ -0,0 +1,15 @@
+; RUN: llc -mtriple thumbv7-windows -filetype asm -o - %s | FileCheck %s
+
+@.str = private unnamed_addr constant [7 x i8] c"string\00", align 1
+
+declare arm_aapcs_vfpcc void @callee(i8*)
+
+define arm_aapcs_vfpcc void @function() {
+entry:
+ call arm_aapcs_vfpcc void @callee(i8* getelementptr inbounds ([7 x i8]* @.str, i32 0, i32 0))
+ ret void
+}
+
+; CHECK: .section .rdata,"rd"
+; CHECK-NOT: .section ".rodata.str1.1"
+