summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/ARM
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2015-12-13 05:27:45 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2015-12-13 05:27:45 +0000
commit778c268594601435c25fec4547abb4ed48877945 (patch)
tree5ab2007e0db1378a64511df90d33e63cbf0ecaed /llvm/test/CodeGen/ARM
parent13ec69705668a6ddf5295565fcea65065eeeda37 (diff)
downloadbcm5719-llvm-778c268594601435c25fec4547abb4ed48877945.tar.gz
bcm5719-llvm-778c268594601435c25fec4547abb4ed48877945.zip
ARM: only emit EABI attributes on EABI targets
EABI attributes should only be emitted on EABI targets. This prevents the emission of the optimization goals EABI attribute on Windows ARM. llvm-svn: 255448
Diffstat (limited to 'llvm/test/CodeGen/ARM')
-rw-r--r--llvm/test/CodeGen/ARM/Windows/no-eabi.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/ARM/Windows/no-eabi.ll b/llvm/test/CodeGen/ARM/Windows/no-eabi.ll
new file mode 100644
index 00000000000..033ca0267ee
--- /dev/null
+++ b/llvm/test/CodeGen/ARM/Windows/no-eabi.ll
@@ -0,0 +1,10 @@
+; RUN: llc -O3 -mtriple thumbv7-windows %s -filetype asm -o - | FileCheck -check-prefix CHECK-NONEABI %s
+; RUN: llc -O3 -mtriple armv7--linux-gnueabi %s -filetype asm -o - | FileCheck -check-prefix CHECK-EABI %s
+
+define arm_aapcs_vfpcc void @function() {
+ ret void
+}
+
+; CHECK-EABI: .eabi_attribute
+; CHECK-NONEABI-NOT: .eabi_attribute
+
OpenPOWER on IntegriCloud