We need to use the ARM EABI to pass vector registers properly (i.e. float2).
Given the following function signature:
void rsDebug(const char *s, float2 f2);
Under the regular ARM ABI, the arguments would be passed as follows:
r0 <- s
r1 <- f2.x
r2 <- f2.y
Under the ARM EABI, the arguments would be passed as follows:
r0 <- s
r1 <- UNUSED due to alignment padding for vector operation
r2 <- f2.x
r3 <- f2.y
Change-Id: I2332c8555c00003ae900f299fa3aee1b3ccac439
diff --git a/core/llvm_config.mk b/core/llvm_config.mk
index 7b21496..c4b4af4 100644
--- a/core/llvm_config.mk
+++ b/core/llvm_config.mk
@@ -20,7 +20,7 @@
-funswitch-loops
ifeq ($(TARGET_ARCH),arm)
- RS_TRIPLE := armv7-unknown-linux
+ RS_TRIPLE := armv7-none-linux-gnueabi
CLANG_CONFIG_EXTRA_ASFLAGS += \
-target arm-linux-androideabi \
-nostdlibinc \