27 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc -mtriple=mips64el -mcpu=mips64r6 -mattr=+msa,+fp64 < %s | FileCheck %s3 4; Test that simply checks if it will finish when value 255 (-1) appears as5; immediate in 'nori.b' instruction.6 7; mips.nori.b %dst, %a, imm8; mips.nori.b %dst, %a, -19; %dst = not (or %a, -1)10; %dst = xor (or %a, -1), -111; %dst = xor -1, -112; %dst = 013 14define <16 x i8> @foo(<16 x i8> %a) {15; CHECK-LABEL: foo:16; CHECK: # %bb.0: # %bb217; CHECK-NEXT: ldi.b $w0, 018; CHECK-NEXT: copy_s.d $2, $w0[0]19; CHECK-NEXT: jr $ra20; CHECK-NEXT: copy_s.d $3, $w0[1]21bb2:22 %0 = tail call <16 x i8> @llvm.mips.nori.b(<16 x i8> %a, i32 255)23 ret <16 x i8> %024}25 26declare <16 x i8> @llvm.mips.nori.b(<16 x i8>, i32)27