1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-linux-gnu \
3 ; RUN: -mcpu=pwr10 -ppc-asm-full-reg-names -ppc-vsr-nums-as-vr < %s | \
6 ; These test cases aim to test the VSX PCV Generate Operations on Power10.
8 declare <16 x i8> @llvm.ppc.vsx.xxgenpcvbm(<16 x i8>, i32)
9 declare <8 x i16> @llvm.ppc.vsx.xxgenpcvhm(<8 x i16>, i32)
10 declare <4 x i32> @llvm.ppc.vsx.xxgenpcvwm(<4 x i32>, i32)
11 declare <2 x i64> @llvm.ppc.vsx.xxgenpcvdm(<2 x i64>, i32)
13 define <16 x i8> @test_xxgenpcvbm(<16 x i8> %a) {
14 ; CHECK-LABEL: test_xxgenpcvbm:
15 ; CHECK: # %bb.0: # %entry
16 ; CHECK-NEXT: xxgenpcvbm v2, v2, 1
19 %gen = tail call <16 x i8> @llvm.ppc.vsx.xxgenpcvbm(<16 x i8> %a, i32 1)
23 define <8 x i16> @test_xxgenpcvhm(<8 x i16> %a) {
24 ; CHECK-LABEL: test_xxgenpcvhm:
25 ; CHECK: # %bb.0: # %entry
26 ; CHECK-NEXT: xxgenpcvhm v2, v2, 1
29 %gen = tail call <8 x i16> @llvm.ppc.vsx.xxgenpcvhm(<8 x i16> %a, i32 1)
33 define <4 x i32> @test_xxgenpcvwm(<4 x i32> %a) {
34 ; CHECK-LABEL: test_xxgenpcvwm:
35 ; CHECK: # %bb.0: # %entry
36 ; CHECK-NEXT: xxgenpcvwm v2, v2, 1
39 %gen = tail call <4 x i32> @llvm.ppc.vsx.xxgenpcvwm(<4 x i32> %a, i32 1)
43 define <2 x i64> @test_xxgenpcvdm(<2 x i64> %a) {
44 ; CHECK-LABEL: test_xxgenpcvdm:
45 ; CHECK: # %bb.0: # %entry
46 ; CHECK-NEXT: xxgenpcvdm v2, v2, 1
49 %gen = tail call <2 x i64> @llvm.ppc.vsx.xxgenpcvdm(<2 x i64> %a, i32 1)