| ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py |
| ; RUN: llc -mtriple=riscv32 -mattr=+experimental-v -verify-machineinstrs -riscv-v-vector-bits-min=128 < %s | FileCheck %s |
| ; RUN: llc -mtriple=riscv64 -mattr=+experimental-v -verify-machineinstrs -riscv-v-vector-bits-min=128 < %s | FileCheck %s |
| |
| define <32 x i1> @bitcast_v4i8_v32i1(<4 x i8> %a, <32 x i1> %b) { |
| ; CHECK-LABEL: bitcast_v4i8_v32i1: |
| ; CHECK: # %bb.0: |
| ; CHECK-NEXT: addi a0, zero, 32 |
| ; CHECK-NEXT: vsetvli a0, a0, e8,m2,ta,mu |
| ; CHECK-NEXT: vmxor.mm v0, v0, v8 |
| ; CHECK-NEXT: ret |
| %c = bitcast <4 x i8> %a to <32 x i1> |
| %d = xor <32 x i1> %b, %c |
| ret <32 x i1> %d |
| } |