File: splat-extend.ll

package info (click to toggle)
llvm-toolchain-21 1%3A21.1.7-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,245,064 kB
  • sloc: cpp: 7,619,731; ansic: 1,434,018; asm: 1,058,748; python: 252,740; f90: 94,671; objc: 70,685; lisp: 42,813; pascal: 18,401; sh: 8,601; ml: 5,111; perl: 4,720; makefile: 3,676; awk: 3,523; javascript: 2,409; xml: 892; fortran: 770
file content (50 lines) | stat: -rw-r--r-- 1,583 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-linux-gnu \
; RUN:   -mcpu=pwr9 -ppc-asm-full-reg-names -ppc-vsr-nums-as-vr < %s | \
; RUN:   FileCheck %s
; RUN: llc -verify-machineinstrs  -mtriple=powerpc64-aix-xcoff \
; RUN:   -mcpu=pwr9 -ppc-asm-full-reg-names -ppc-vsr-nums-as-vr < %s | \
; RUN:   FileCheck %s
; RUN: llc -verify-machineinstrs  -mtriple=powerpc-aix-xcoff \
; RUN:   -mcpu=pwr9 -ppc-asm-full-reg-names -ppc-vsr-nums-as-vr < %s | \
; RUN:   FileCheck %s

define dso_local noundef <8 x i16> @v103s() local_unnamed_addr {
; CHECK-LABEL: v103s:
; CHECK:       # %bb.0: # %entry
; CHECK-NEXT:    xxspltib v2, 103
; CHECK-NEXT:    vupklsb v2, v2
; CHECK-NEXT:    blr
entry:
  ret <8 x i16> splat (i16 103)
}

define dso_local noundef <2 x i64> @v103l() local_unnamed_addr {
; CHECK-LABEL: v103l:
; CHECK:       # %bb.0: # %entry
; CHECK-NEXT:    xxspltib v2, 103
; CHECK-NEXT:    vextsb2d v2, v2
; CHECK-NEXT:    blr
entry:
  ret <2 x i64> splat (i64 103)
}

define dso_local noundef <4 x i32> @v103i() local_unnamed_addr {
; CHECK-LABEL: v103i:
; CHECK:       # %bb.0: # %entry
; CHECK-NEXT:    xxspltib v2, 103
; CHECK-NEXT:    vextsb2w v2, v2
; CHECK-NEXT:    blr
entry:
  ret <4 x i32> splat (i32 103)
}

define dso_local noundef <2 x i64> @v11l() local_unnamed_addr {
; CHECK-LABEL: v11l:
; CHECK:       # %bb.0: # %entry
; CHECK-NEXT:    vspltisw v2, -11
; CHECK-NEXT:    vupklsw v2, v2
; CHECK-NEXT:    blr
entry:
  ret <2 x i64> splat (i64 -11)
}