[llvm-branch-commits] [llvm-branch] r90896 - in /llvm/branches/Apple/Zoidberg: lib/Target/ARM/ARMISelLowering.cpp lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp test/CodeGen/ARM/inlineasm3.ll
Evan Cheng
evan.cheng at apple.com
Tue Dec 8 15:10:58 PST 2009
Author: evancheng
Date: Tue Dec 8 17:10:58 2009
New Revision: 90896
URL: http://llvm.org/viewvc/llvm-project?rev=90896&view=rev
Log:
Merged 90894.
Added:
llvm/branches/Apple/Zoidberg/test/CodeGen/ARM/inlineasm3.ll
Modified:
llvm/branches/Apple/Zoidberg/lib/Target/ARM/ARMISelLowering.cpp
llvm/branches/Apple/Zoidberg/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp
Modified: llvm/branches/Apple/Zoidberg/lib/Target/ARM/ARMISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Zoidberg/lib/Target/ARM/ARMISelLowering.cpp?rev=90896&r1=90895&r2=90896&view=diff
==============================================================================
--- llvm/branches/Apple/Zoidberg/lib/Target/ARM/ARMISelLowering.cpp (original)
+++ llvm/branches/Apple/Zoidberg/lib/Target/ARM/ARMISelLowering.cpp Tue Dec 8 17:10:58 2009
@@ -4013,6 +4013,8 @@
return std::make_pair(0U, ARM::SPRRegisterClass);
if (VT == MVT::f64)
return std::make_pair(0U, ARM::DPRRegisterClass);
+ if (VT.getSizeInBits() == 128)
+ return std::make_pair(0U, ARM::QPRRegisterClass);
break;
}
}
@@ -4051,6 +4053,9 @@
ARM::D4, ARM::D5, ARM::D6, ARM::D7,
ARM::D8, ARM::D9, ARM::D10,ARM::D11,
ARM::D12,ARM::D13,ARM::D14,ARM::D15, 0);
+ if (VT.getSizeInBits() == 128)
+ return make_vector<unsigned>(ARM::Q0, ARM::Q1, ARM::Q2, ARM::Q3,
+ ARM::Q4, ARM::Q5, ARM::Q6, ARM::Q7, 0);
break;
}
Modified: llvm/branches/Apple/Zoidberg/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Zoidberg/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp?rev=90896&r1=90895&r2=90896&view=diff
==============================================================================
--- llvm/branches/Apple/Zoidberg/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp (original)
+++ llvm/branches/Apple/Zoidberg/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp Tue Dec 8 17:10:58 2009
@@ -1036,6 +1036,7 @@
printNoHashImmediate(MI, OpNum);
return false;
case 'P': // Print a VFP double precision register.
+ case 'q': // Print a NEON quad precision register.
printOperand(MI, OpNum);
return false;
case 'Q':
Added: llvm/branches/Apple/Zoidberg/test/CodeGen/ARM/inlineasm3.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Zoidberg/test/CodeGen/ARM/inlineasm3.ll?rev=90896&view=auto
==============================================================================
--- llvm/branches/Apple/Zoidberg/test/CodeGen/ARM/inlineasm3.ll (added)
+++ llvm/branches/Apple/Zoidberg/test/CodeGen/ARM/inlineasm3.ll Tue Dec 8 17:10:58 2009
@@ -0,0 +1,13 @@
+; RUN: llc < %s -march=arm -mattr=+neon | FileCheck %s
+
+%struct.int32x4_t = type { <4 x i32> }
+
+define arm_apcscc void @t() nounwind {
+entry:
+; CHECK: vmov.I64 q15, #0
+; CHECK: vmov.32 d30[0], r0
+; CHECK: vmov q0, q15
+ %tmp = alloca %struct.int32x4_t, align 16
+ call void asm sideeffect "vmov.I64 q15, #0\0Avmov.32 d30[0], $1\0Avmov ${0:q}, q15\0A", "=*w,r,~{d31},~{d30}"(%struct.int32x4_t* %tmp, i32 8192) nounwind
+ ret void
+}
More information about the llvm-branch-commits
mailing list