xref: /llvm-project/llvm/test/CodeGen/PowerPC/p10-vector-sign-extend.ll (revision bc5c637376ce024df7964c6095180c2ddf59e690)
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 | \
4; RUN:   FileCheck %s
5; RUN: llc -verify-machineinstrs -mtriple=powerpc64-ibm-aix-xcoff \
6; RUN:   -mcpu=pwr10 -ppc-asm-full-reg-names -ppc-vsr-nums-as-vr < %s | \
7; RUN:   FileCheck %s
8
9; This test case aims to test vector sign extend builtins.
10
11declare <1 x i128> @llvm.ppc.altivec.vextsd2q(<2 x i64>) nounwind readnone
12
13define <1 x i128> @test_vextsd2q(<2 x i64> %x) nounwind readnone {
14; CHECK-LABEL: test_vextsd2q:
15; CHECK:       # %bb.0:
16; CHECK-NEXT:    vextsd2q v2, v2
17; CHECK-NEXT:    blr
18  %tmp = tail call <1 x i128> @llvm.ppc.altivec.vextsd2q(<2 x i64> %x)
19  ret <1 x i128> %tmp
20}
21