mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-12 13:30:51 +00:00
5db1eea91a
maybe even Linux. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115291 91177308-0d34-0410-b5e6-96231b3b80d8
16 lines
548 B
LLVM
16 lines
548 B
LLVM
; RUN: llc < %s -march=x86-64 -mattr=+mmx,+sse2 | grep movq | count 2
|
|
; There are no MMX operations here; this is promoted to XMM.
|
|
|
|
define void @foo(<1 x i64>* %a, <1 x i64>* %b) nounwind {
|
|
entry:
|
|
%0 = load <1 x i64>* %a, align 8 ; <<1 x i64>> [#uses=1]
|
|
%1 = bitcast <1 x i64> %0 to <2 x i32> ; <<2 x i32>> [#uses=1]
|
|
%2 = and <2 x i32> %1, < i32 -1, i32 0 > ; <<2 x i32>> [#uses=1]
|
|
%3 = bitcast <2 x i32> %2 to <1 x i64> ; <<1 x i64>> [#uses=1]
|
|
store <1 x i64> %3, <1 x i64>* %b, align 8
|
|
br label %bb2
|
|
|
|
bb2: ; preds = %entry
|
|
ret void
|
|
}
|