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.
22 lines
795 B
LLVM
22 lines
795 B
LLVM
; RUN: llc < %s -mtriple=i686-- -mattr=+mmx | FileCheck %s
|
|
; RUN: llc < %s -mtriple=i686-- -mattr=+mmx,-sse | FileCheck %s
|
|
|
|
; Test that turning off sse doesn't turn off mmx.
|
|
|
|
declare <1 x i64> @llvm.x86.mmx.pcmpgt.d(<1 x i64>, <1 x i64>) nounwind readnone
|
|
|
|
define i64 @test88(<1 x i64> %a, <1 x i64> %b) nounwind readnone {
|
|
; CHECK-LABEL: @test88
|
|
; CHECK: pcmpgtd
|
|
entry:
|
|
%0 = bitcast <1 x i64> %b to <2 x i32>
|
|
%1 = bitcast <1 x i64> %a to <2 x i32>
|
|
%mmx_var.i = bitcast <2 x i32> %1 to <1 x i64>
|
|
%mmx_var1.i = bitcast <2 x i32> %0 to <1 x i64>
|
|
%2 = tail call <1 x i64> @llvm.x86.mmx.pcmpgt.d(<1 x i64> %mmx_var.i, <1 x i64> %mmx_var1.i) nounwind
|
|
%3 = bitcast <1 x i64> %2 to <2 x i32>
|
|
%4 = bitcast <2 x i32> %3 to <1 x i64>
|
|
%5 = extractelement <1 x i64> %4, i32 0
|
|
ret i64 %5
|
|
}
|