|
| 1 | +; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5 |
| 2 | +; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-unknown -mcpu=pwr9 \ |
| 3 | +; RUN: --ppc-asm-full-reg-names < %s | FileCheck %s |
| 4 | +; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-unknown -mcpu=pwr9 \ |
| 5 | +; RUN: --ppc-asm-full-reg-names < %s | FileCheck %s |
| 6 | +; RUN: llc -verify-machineinstrs -mcpu=pwr9 -mtriple=powerpc64-ibm-aix-xcoff \ |
| 7 | +; RUN: -ppc-asm-full-reg-names < %s | FileCheck %s |
| 8 | + |
| 9 | +define dso_local <16 x i8> @test_bcdcopysign(<16 x i8> noundef %a, <16 x i8> noundef %b) { |
| 10 | +; CHECK-LABEL: test_bcdcopysign: |
| 11 | +; CHECK: # %bb.0: # %entry |
| 12 | +; CHECK-NEXT: bcdcpsgn. v2, v2, v3 |
| 13 | +; CHECK-NEXT: blr |
| 14 | +entry: |
| 15 | + %0 = tail call <16 x i8> @llvm.ppc.bcdcopysign(<16 x i8> %a, <16 x i8> %b) |
| 16 | + ret <16 x i8> %0 |
| 17 | +} |
| 18 | + |
| 19 | +define dso_local <16 x i8> @test_bcdsetsign_imm0(<16 x i8> noundef %a) { |
| 20 | +; CHECK-LABEL: test_bcdsetsign_imm0: |
| 21 | +; CHECK: # %bb.0: # %entry |
| 22 | +; CHECK-NEXT: bcdsetsgn. v2, v2, 0 |
| 23 | +; CHECK-NEXT: blr |
| 24 | +entry: |
| 25 | + %0 = tail call <16 x i8> @llvm.ppc.bcdsetsign(<16 x i8> %a, i32 0) |
| 26 | + ret <16 x i8> %0 |
| 27 | +} |
| 28 | + |
| 29 | +define dso_local <16 x i8> @test_bcdsetsign_imm1(<16 x i8> noundef %a) { |
| 30 | +; CHECK-LABEL: test_bcdsetsign_imm1: |
| 31 | +; CHECK: # %bb.0: # %entry |
| 32 | +; CHECK-NEXT: bcdsetsgn. v2, v2, 1 |
| 33 | +; CHECK-NEXT: blr |
| 34 | +entry: |
| 35 | + %0 = tail call <16 x i8> @llvm.ppc.bcdsetsign(<16 x i8> %a, i32 1) |
| 36 | + ret <16 x i8> %0 |
| 37 | +} |
| 38 | + |
| 39 | +declare <16 x i8> @llvm.ppc.bcdcopysign(<16 x i8>, <16 x i8>) |
| 40 | +declare <16 x i8> @llvm.ppc.bcdsetsign(<16 x i8>, i32) |
0 commit comments