mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 22:24:54 +00:00
Remove the pmulld intrinsic and autoupdate it as a vector multiply.
Rewrite the pmulld patterns, and make sure that they fold in loads of arguments into the instruction. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99910 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
16
test/CodeGen/X86/pmulld.ll
Normal file
16
test/CodeGen/X86/pmulld.ll
Normal file
@@ -0,0 +1,16 @@
|
||||
; RUN: llc < %s -march=x86-64 -mattr=+sse41 -asm-verbose=0 | FileCheck %s
|
||||
|
||||
define <4 x i32> @test1(<4 x i32> %A, <4 x i32> %B) nounwind {
|
||||
; CHECK: test1:
|
||||
; CHECK-NEXT: pmulld
|
||||
%C = mul <4 x i32> %A, %B
|
||||
ret <4 x i32> %C
|
||||
}
|
||||
|
||||
define <4 x i32> @test1a(<4 x i32> %A, <4 x i32> *%Bp) nounwind {
|
||||
; CHECK: test1a:
|
||||
; CHECK-NEXT: pmulld
|
||||
%B = load <4 x i32>* %Bp
|
||||
%C = mul <4 x i32> %A, %B
|
||||
ret <4 x i32> %C
|
||||
}
|
Reference in New Issue
Block a user