
After #98505, the textual IR keyword `x86_mmx` was temporarily made to parse as `<1 x i64>`, so as not to require a lot of test update noise. This completes the removal of the type, by removing the`x86_mmx` keyword from the IR parser, and making the (now no-op) test updates via `sed -i 's/\bx86_mmx\b/<1 x i64>/g' $(git grep -l x86_mmx llvm/test/)`. Resulting bitcasts from <1 x i64> to itself were then manually deleted. Changes to llvm/test/Bitcode/compatibility-$VERSION.ll were reverted, as they're intended to be equivalent to the .bc file, if parsed by old LLVM, so shouldn't be updated. A few tests were removed, as they're no longer testing anything, in the following files: - llvm/test/Transforms/GlobalOpt/x86_mmx_load.ll - llvm/test/Transforms/InstCombine/cast.ll - llvm/test/Transforms/InstSimplify/ConstProp/gep-zeroinit-vector.ll Works towards issue #98272.
52 lines
1.7 KiB
LLVM
52 lines
1.7 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
|
; RUN: llc < %s -mtriple=i386-apple-darwin -mattr=+mmx | FileCheck %s --check-prefix=X86-32
|
|
; RUN: llc < %s -mtriple=x86_64-apple-darwin -mattr=+mmx,+sse2 | FileCheck %s --check-prefix=X86-64
|
|
;
|
|
; On Darwin x86-32, v8i8, v4i16, v2i32 values are passed in MM[0-2].
|
|
; On Darwin x86-32, v1i64 values are passed in memory. In this example, they
|
|
; are never moved into an MM register at all.
|
|
; On Darwin x86-64, v8i8, v4i16, v2i32 values are passed in XMM[0-7].
|
|
; On Darwin x86-64, v1i64 values are passed in 64-bit GPRs.
|
|
|
|
@u1 = external global <1 x i64>
|
|
|
|
define void @t1(<1 x i64> %v1) nounwind {
|
|
; X86-32-LABEL: t1:
|
|
; X86-32: ## %bb.0:
|
|
; X86-32-NEXT: movl {{[0-9]+}}(%esp), %eax
|
|
; X86-32-NEXT: movl {{[0-9]+}}(%esp), %ecx
|
|
; X86-32-NEXT: movl L_u1$non_lazy_ptr, %edx
|
|
; X86-32-NEXT: movl %ecx, 4(%edx)
|
|
; X86-32-NEXT: movl %eax, (%edx)
|
|
; X86-32-NEXT: retl
|
|
;
|
|
; X86-64-LABEL: t1:
|
|
; X86-64: ## %bb.0:
|
|
; X86-64-NEXT: movq _u1@GOTPCREL(%rip), %rax
|
|
; X86-64-NEXT: movq %rdi, (%rax)
|
|
; X86-64-NEXT: retq
|
|
store <1 x i64> %v1, ptr @u1, align 8
|
|
ret void
|
|
}
|
|
|
|
@u2 = external global <1 x i64>
|
|
|
|
define void @t2(<1 x i64> %v1) nounwind {
|
|
; X86-32-LABEL: t2:
|
|
; X86-32: ## %bb.0:
|
|
; X86-32-NEXT: movl {{[0-9]+}}(%esp), %eax
|
|
; X86-32-NEXT: movl {{[0-9]+}}(%esp), %ecx
|
|
; X86-32-NEXT: movl L_u2$non_lazy_ptr, %edx
|
|
; X86-32-NEXT: movl %ecx, 4(%edx)
|
|
; X86-32-NEXT: movl %eax, (%edx)
|
|
; X86-32-NEXT: retl
|
|
;
|
|
; X86-64-LABEL: t2:
|
|
; X86-64: ## %bb.0:
|
|
; X86-64-NEXT: movq _u2@GOTPCREL(%rip), %rax
|
|
; X86-64-NEXT: movq %rdi, (%rax)
|
|
; X86-64-NEXT: retq
|
|
store <1 x i64> %v1, ptr @u2, align 8
|
|
ret void
|
|
}
|