Skip to content

Commit 324d696

Browse files
committed
Automatically generates several X86/sse tests cases. NFC
1 parent d955010 commit 324d696

File tree

4 files changed

+664
-142
lines changed

4 files changed

+664
-142
lines changed

llvm/test/CodeGen/X86/sse-commute.ll

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1+
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
12
; RUN: llc -mtriple=x86_64-linux < %s | FileCheck %s
23

34
; Commute the comparison to avoid a move.
45
; PR7500.
5-
6-
; CHECK-LABEL: a:
7-
; CHECK-NOT: mov
8-
; CHECK: pcmpeqd
96
define <2 x double> @a(<2 x double>, <2 x double>) nounwind readnone {
7+
; CHECK-LABEL: a:
8+
; CHECK: # %bb.0: # %entry
9+
; CHECK-NEXT: pcmpeqd %xmm0, %xmm1
10+
; CHECK-NEXT: pand %xmm1, %xmm0
11+
; CHECK-NEXT: retq
1012
entry:
1113
%tmp6 = bitcast <2 x double> %0 to <4 x i32> ; <<4 x i32>> [#uses=2]
1214
%tmp4 = bitcast <2 x double> %1 to <4 x i32> ; <<4 x i32>> [#uses=1]
@@ -16,5 +18,3 @@ entry:
1618
%tmp8 = bitcast <4 x i32> %and to <2 x double> ; <<2 x double>> [#uses=1]
1719
ret <2 x double> %tmp8
1820
}
19-
20-

0 commit comments

Comments
 (0)