1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=sparcv9 | FileCheck %s
4 define <2 x i64> @fshl_v2i64(<2 x i64> %x, <2 x i64> %y, <2 x i64> %z) {
5 ; CHECK-LABEL: fshl_v2i64:
6 ; CHECK: .cfi_startproc
7 ; CHECK-NEXT: .register %g2, #scratch
8 ; CHECK-NEXT: .register %g3, #scratch
9 ; CHECK-NEXT: ! %bb.0: ! %bb
10 ; CHECK-NEXT: mov 63, %g2
11 ; CHECK-NEXT: andn %g2, %o4, %g3
12 ; CHECK-NEXT: srlx %o2, 1, %o2
13 ; CHECK-NEXT: srlx %o2, %g3, %o2
14 ; CHECK-NEXT: and %o4, 63, %o4
15 ; CHECK-NEXT: sllx %o0, %o4, %o0
16 ; CHECK-NEXT: or %o0, %o2, %o0
17 ; CHECK-NEXT: andn %g2, %o5, %o2
18 ; CHECK-NEXT: srlx %o3, 1, %o3
19 ; CHECK-NEXT: srlx %o3, %o2, %o2
20 ; CHECK-NEXT: and %o5, 63, %o3
21 ; CHECK-NEXT: sllx %o1, %o3, %o1
23 ; CHECK-NEXT: or %o1, %o2, %o1
25 %i = call <2 x i64> @llvm.fshl.v2i64(<2 x i64> %x, <2 x i64> %y, <2 x i64> %z)
29 define i32 @PR47303() {
30 ; CHECK-LABEL: PR47303:
31 ; CHECK: .cfi_startproc
32 ; CHECK-NEXT: ! %bb.0: ! %bb
34 ; CHECK-NEXT: mov %g0, %o0
36 %i = call <4 x i64> @llvm.fshl.v4i64(<4 x i64> undef, <4 x i64> undef, <4 x i64> <i64 57, i64 27, i64 12, i64 33>)
37 %i1 = add <4 x i64> %i, zeroinitializer
38 %i2 = add <4 x i64> %i1, zeroinitializer
39 %i3 = extractelement <4 x i64> %i2, i32 0
42 %i6 = trunc i64 %i5 to i32
43 %i7 = mul i32 %i6, 797982799
47 declare <2 x i64> @llvm.fshl.v2i64(<2 x i64>, <2 x i64>, <2 x i64>)
48 declare <4 x i64> @llvm.fshl.v4i64(<4 x i64>, <4 x i64>, <4 x i64>)