brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1000 B · f022c3e Raw
25 lines · plain
1; RUN: llc < %s -verify-machineinstrs -mattr=+relaxed-simd | FileCheck %s2 3; Test that setting "relaxed-simd" target feature set also implies 'simd128' in4; AssemblerPredicate, which is used to verify instructions in AsmPrinter.5 6target triple = "wasm32-unknown-unknown"7 8declare <2 x i64> @llvm.wasm.relaxed.laneselect.v2i64(<2 x i64>, <2 x i64>, <2 x i64>)9 10; The compiled result of this function uses LOCAL_GET_V128, which is predicated11; on the 'simd128' feature. We should be able to compile this when only12; 'relaxed-simd' is set, which implies 'simd128'.13define <2 x i64> @test(<2 x i64>, <2 x i64>, <2 x i64>) #0 {14; CHECK-LABEL: test:15; CHECK:         .functype  test (v128, v128, v128) -> (v128)16; CHECK-NEXT:  # %bb.0:17; CHECK-NEXT:    local.get  018; CHECK-NEXT:    local.get  119; CHECK-NEXT:    local.get  220; CHECK-NEXT:    i64x2.relaxed_laneselect21start:22  %_4 = tail call <2 x i64> @llvm.wasm.relaxed.laneselect.v2i64(<2 x i64> %0, <2 x i64> %1, <2 x i64> %2) #323  ret <2 x i64> %_424}25