xref: /llvm-project/llvm/test/CodeGen/X86/2009-01-31-BigShift2.ll (revision 2f448bf509432c1a19ec46ab8cbc7353c03c6280)
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2; RUN: llc < %s -mtriple=i686-- | FileCheck %s
3; PR3449
4
5define void @test(ptr %P, ptr %Q) nounwind {
6; CHECK-LABEL: test:
7; CHECK:       # %bb.0:
8; CHECK-NEXT:    movl {{[0-9]+}}(%esp), %eax
9; CHECK-NEXT:    movl {{[0-9]+}}(%esp), %ecx
10; CHECK-NEXT:    movl 56(%ecx), %edx
11; CHECK-NEXT:    movl 60(%ecx), %ecx
12; CHECK-NEXT:    movl %ecx, 4(%eax)
13; CHECK-NEXT:    movl %edx, (%eax)
14; CHECK-NEXT:    retl
15	%A = load <8 x double>, ptr %P		; <<8 x double>> [#uses=1]
16	%B = bitcast <8 x double> %A to i512		; <i512> [#uses=1]
17	%C = lshr i512 %B, 448		; <i512> [#uses=1]
18	%D = trunc i512 %C to i64		; <i64> [#uses=1]
19	store volatile i64 %D, ptr %Q
20	ret void
21}
22