mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
ab043ff680
Essentially the same as the GEP change in r230786. A similar migration script can be used to update test cases, though a few more test case improvements/changes were required this time around: (r229269-r229278) import fileinput import sys import re pat = re.compile(r"((?:=|:|^)\s*load (?:atomic )?(?:volatile )?(.*?))(| addrspace\(\d+\) *)\*($| *(?:%|@|null|undef|blockaddress|getelementptr|addrspacecast|bitcast|inttoptr|\[\[[a-zA-Z]|\{\{).*$)") for line in sys.stdin: sys.stdout.write(re.sub(pat, r"\1, \2\3*\4", line)) Reviewers: rafael, dexonsmith, grosser Differential Revision: http://reviews.llvm.org/D7649 llvm-svn: 230794
31 lines
998 B
LLVM
31 lines
998 B
LLVM
; RUN: llc -mtriple=arm-eabi -float-abi=soft -mattr=+neon %s -o - | FileCheck %s
|
|
|
|
; CHECK: t1
|
|
; CHECK: vldr d
|
|
; CHECK: vldr d
|
|
; CHECK: vadd.i16 d
|
|
; CHECK: vstr d
|
|
define void @t1(<2 x i32>* %r, <4 x i16>* %a, <4 x i16>* %b) nounwind {
|
|
entry:
|
|
%0 = load <4 x i16>, <4 x i16>* %a, align 8 ; <<4 x i16>> [#uses=1]
|
|
%1 = load <4 x i16>, <4 x i16>* %b, align 8 ; <<4 x i16>> [#uses=1]
|
|
%2 = add <4 x i16> %0, %1 ; <<4 x i16>> [#uses=1]
|
|
%3 = bitcast <4 x i16> %2 to <2 x i32> ; <<2 x i32>> [#uses=1]
|
|
store <2 x i32> %3, <2 x i32>* %r, align 8
|
|
ret void
|
|
}
|
|
|
|
; CHECK: t2
|
|
; CHECK: vldr d
|
|
; CHECK: vldr d
|
|
; CHECK: vsub.i16 d
|
|
; CHECK: vmov r0, r1, d
|
|
define <2 x i32> @t2(<4 x i16>* %a, <4 x i16>* %b) nounwind readonly {
|
|
entry:
|
|
%0 = load <4 x i16>, <4 x i16>* %a, align 8 ; <<4 x i16>> [#uses=1]
|
|
%1 = load <4 x i16>, <4 x i16>* %b, align 8 ; <<4 x i16>> [#uses=1]
|
|
%2 = sub <4 x i16> %0, %1 ; <<4 x i16>> [#uses=1]
|
|
%3 = bitcast <4 x i16> %2 to <2 x i32> ; <<2 x i32>> [#uses=1]
|
|
ret <2 x i32> %3
|
|
}
|