brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.4 KiB · 0758489 Raw
71 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 42; RUN: sed 's/iXLen/i32/g' %s | llc -mtriple=riscv32 -mattr=+v \3; RUN:   -mattr=+zvfh -mattr=+experimental-zvfbfmin -mattr=+xsfmmbase \4; RUN:   -mattr=+xsfmm32a -mattr=+xsfmm32a8f -mattr=+xsfmm32a4i -mattr=+xsfmm64a64f \5; RUN:   -verify-machineinstrs | FileCheck %s --check-prefixes=CHECK6; RUN: sed 's/iXLen/i64/g' %s | llc -mtriple=riscv64 -mattr=+v \7; RUN:   -mattr=+zvfh -mattr=+experimental-zvfbfmin -mattr=+xsfmmbase \8; RUN:   -mattr=+experimental-zvfbfmin -mattr=+xsfmmbase \9; RUN:   -mattr=+xsfmm32a -mattr=+xsfmm32a8f -mattr=+xsfmm32a4i -mattr=+xsfmm64a64f \10; RUN:   -verify-machineinstrs | FileCheck %s --check-prefixes=CHECK11 12define iXLen @test_sf_vsettnt_e8w1(iXLen %tn) {13; CHECK-LABEL: test_sf_vsettnt_e8w1:14; CHECK:       # %bb.0: # %entry15; CHECK-NEXT:    sf.vsettnt a0, a0, e8, w116; CHECK-NEXT:    ret17 entry:18   %0 = call iXLen @llvm.riscv.sf.vsettnt.iXLen(iXLen %tn, iXLen 0, iXLen 1)19   ret iXLen %020}21 22define iXLen @test_sf_vsettnt_e8w2(iXLen %tn) {23; CHECK-LABEL: test_sf_vsettnt_e8w2:24; CHECK:       # %bb.0: # %entry25; CHECK-NEXT:    sf.vsettnt a0, a0, e8, w226; CHECK-NEXT:    ret27 entry:28   %0 = call iXLen @llvm.riscv.sf.vsettnt.iXLen(iXLen %tn, iXLen 0, iXLen 2)29   ret iXLen %030}31 32define iXLen @test_sf_vsettnt_e8w4(iXLen %tn) {33; CHECK-LABEL: test_sf_vsettnt_e8w4:34; CHECK:       # %bb.0: # %entry35; CHECK-NEXT:    sf.vsettnt a0, a0, e8, w436; CHECK-NEXT:    ret37 entry:38   %0 = call iXLen @llvm.riscv.sf.vsettnt.iXLen(iXLen %tn, iXLen 0, iXLen 3)39   ret iXLen %040}41 42define iXLen @test_sf_vsettnt_e16w1(iXLen %tn) {43; CHECK-LABEL: test_sf_vsettnt_e16w1:44; CHECK:       # %bb.0: # %entry45; CHECK-NEXT:    sf.vsettnt a0, a0, e16, w146; CHECK-NEXT:    ret47 entry:48   %0 = call iXLen @llvm.riscv.sf.vsettnt.iXLen(iXLen %tn, iXLen 1, iXLen 1)49   ret iXLen %050}51 52define iXLen @test_sf_vsettnt_e16w2(iXLen %tn) {53; CHECK-LABEL: test_sf_vsettnt_e16w2:54; CHECK:       # %bb.0: # %entry55; CHECK-NEXT:    sf.vsettnt a0, a0, e16, w256; CHECK-NEXT:    ret57 entry:58   %0 = call iXLen @llvm.riscv.sf.vsettnt.iXLen(iXLen %tn, iXLen 1, iXLen 2)59   ret iXLen %060}61 62define iXLen @test_sf_vsettnt_e16w4(iXLen %tn) {63; CHECK-LABEL: test_sf_vsettnt_e16w4:64; CHECK:       # %bb.0: # %entry65; CHECK-NEXT:    sf.vsettnt a0, a0, e16, w466; CHECK-NEXT:    ret67 entry:68   %0 = call iXLen @llvm.riscv.sf.vsettnt.iXLen(iXLen %tn, iXLen 1, iXLen 3)69   ret iXLen %070}71