NAKAMURA Takumi | 37947c6 | 2011-03-16 13:52:51 +0000 | [diff] [blame^] | 1 | ; RUN: llc < %s -mtriple=x86_64-linux -mattr=+sse41 -asm-verbose=0 | FileCheck %s |
| 2 | ; RUN: llc < %s -mtriple=x86_64-win32 -mattr=+sse41 -asm-verbose=0 | FileCheck %s -check-prefix=WIN64 |
Eric Christopher | 8258d0b | 2010-03-30 18:49:01 +0000 | [diff] [blame] | 3 | |
| 4 | define <4 x i32> @test1(<4 x i32> %A, <4 x i32> %B) nounwind { |
| 5 | ; CHECK: test1: |
| 6 | ; CHECK-NEXT: pmulld |
NAKAMURA Takumi | 37947c6 | 2011-03-16 13:52:51 +0000 | [diff] [blame^] | 7 | |
| 8 | ; WIN64: test1: |
| 9 | ; WIN64-NEXT: movdqa (%rcx), %xmm0 |
| 10 | ; WIN64-NEXT: pmulld (%rdx), %xmm0 |
Eric Christopher | 8258d0b | 2010-03-30 18:49:01 +0000 | [diff] [blame] | 11 | %C = mul <4 x i32> %A, %B |
| 12 | ret <4 x i32> %C |
| 13 | } |
| 14 | |
| 15 | define <4 x i32> @test1a(<4 x i32> %A, <4 x i32> *%Bp) nounwind { |
| 16 | ; CHECK: test1a: |
| 17 | ; CHECK-NEXT: pmulld |
NAKAMURA Takumi | 37947c6 | 2011-03-16 13:52:51 +0000 | [diff] [blame^] | 18 | |
| 19 | ; WIN64: test1a: |
| 20 | ; WIN64-NEXT: movdqa (%rcx), %xmm0 |
| 21 | ; WIN64-NEXT: pmulld (%rdx), %xmm0 |
| 22 | |
Eric Christopher | 8258d0b | 2010-03-30 18:49:01 +0000 | [diff] [blame] | 23 | %B = load <4 x i32>* %Bp |
| 24 | %C = mul <4 x i32> %A, %B |
| 25 | ret <4 x i32> %C |
| 26 | } |