[llvm] r314068 - [X86] Regenerate i64 to v2f32 bitcast test
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Sat Sep 23 12:18:29 PDT 2017
Author: rksimon
Date: Sat Sep 23 12:18:29 2017
New Revision: 314068
URL: http://llvm.org/viewvc/llvm-project?rev=314068&view=rev
Log:
[X86] Regenerate i64 to v2f32 bitcast test
Modified:
llvm/trunk/test/CodeGen/X86/bitcast-int-to-vector.ll
Modified: llvm/trunk/test/CodeGen/X86/bitcast-int-to-vector.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/bitcast-int-to-vector.ll?rev=314068&r1=314067&r2=314068&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/bitcast-int-to-vector.ll (original)
+++ llvm/trunk/test/CodeGen/X86/bitcast-int-to-vector.ll Sat Sep 23 12:18:29 2017
@@ -1,7 +1,34 @@
-; RUN: llc < %s -mtriple=i686--
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
+; RUN: llc < %s -mtriple=i686-unknown | FileCheck %s --check-prefix=X86
+; RUN: llc < %s -mtriple=i686-unknown -mattr=+sse2 | FileCheck %s --check-prefix=X86-SSE
+; RUN: llc < %s -mtriple=x86_64-unknown | FileCheck %s --check-prefix=X64
-define i1 @foo(i64 %a)
-{
+define i1 @foo(i64 %a) {
+; X86-LABEL: foo:
+; X86: # BB#0:
+; X86-NEXT: flds {{[0-9]+}}(%esp)
+; X86-NEXT: flds {{[0-9]+}}(%esp)
+; X86-NEXT: fucompp
+; X86-NEXT: fnstsw %ax
+; X86-NEXT: # kill: %AH<def> %AH<kill> %AX<kill>
+; X86-NEXT: sahf
+; X86-NEXT: setp %al
+; X86-NEXT: retl
+;
+; X86-SSE-LABEL: foo:
+; X86-SSE: # BB#0:
+; X86-SSE-NEXT: movss {{.*#+}} xmm0 = mem[0],zero,zero,zero
+; X86-SSE-NEXT: ucomiss {{[0-9]+}}(%esp), %xmm0
+; X86-SSE-NEXT: setp %al
+; X86-SSE-NEXT: retl
+;
+; X64-LABEL: foo:
+; X64: # BB#0:
+; X64-NEXT: movq %rdi, %xmm0
+; X64-NEXT: pshufd {{.*#+}} xmm1 = xmm0[1,1,2,3]
+; X64-NEXT: ucomiss %xmm1, %xmm0
+; X64-NEXT: setp %al
+; X64-NEXT: retq
%t = bitcast i64 %a to <2 x float>
%r = extractelement <2 x float> %t, i32 0
%s = extractelement <2 x float> %t, i32 1
More information about the llvm-commits
mailing list