summaryrefslogtreecommitdiffstats
path: root/test cases/common/118 llvm ir and assembly/square-arm.S
diff options
context:
space:
mode:
Diffstat (limited to 'test cases/common/118 llvm ir and assembly/square-arm.S')
-rw-r--r--test cases/common/118 llvm ir and assembly/square-arm.S29
1 files changed, 29 insertions, 0 deletions
diff --git a/test cases/common/118 llvm ir and assembly/square-arm.S b/test cases/common/118 llvm ir and assembly/square-arm.S
new file mode 100644
index 0000000..aea3f1f
--- /dev/null
+++ b/test cases/common/118 llvm ir and assembly/square-arm.S
@@ -0,0 +1,29 @@
+#include "symbol-underscore.h"
+
+#ifdef _MSC_VER
+
+ AREA _TEXT, ARM, CODE, READONLY
+
+ EXPORT SYMBOL_NAME(square_unsigned)
+SYMBOL_NAME(square_unsigned) PROC
+ mul r1, r0, r0
+ mov r0, r1
+ mov pc, lr
+SYMBOL_NAME(square_unsigned) ENDP
+
+ END
+
+#else
+
+.text
+.globl SYMBOL_NAME(square_unsigned)
+# ifdef __linux__
+.type square_unsigned, %function
+#endif
+
+SYMBOL_NAME(square_unsigned):
+ mul r1, r0, r0
+ mov r0, r1
+ mov pc, lr
+
+#endif