brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.5 KiB · 209f0e4 Raw
49 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 22; RUN: sed 's/iX/i32/g' %s | llc --mtriple=wasm32-unknown-unknown | FileCheck --check-prefix=I32 %s3; RUN: sed 's/iX/i64/g' %s | llc --mtriple=wasm64-unknown-unknown | FileCheck --check-prefix=I64 %s4 5declare iX @llvm.fshl.iX(iX, iX, iX)6declare iX @llvm.fshr.iX(iX, iX, iX)7 8; from https://github.com/llvm/llvm-project/issues/627039 10define iX @testLeft(iX noundef %0, iX noundef %1) {11; I32-LABEL: testLeft:12; I32:         .functype testLeft (i32, i32) -> (i32)13; I32-NEXT:  # %bb.0:14; I32-NEXT:    local.get 015; I32-NEXT:    local.get 116; I32-NEXT:    i32.rotl17; I32-NEXT:    # fallthrough-return18;19; I64-LABEL: testLeft:20; I64:         .functype testLeft (i64, i64) -> (i64)21; I64-NEXT:  # %bb.0:22; I64-NEXT:    local.get 023; I64-NEXT:    local.get 124; I64-NEXT:    i64.rotl25; I64-NEXT:    # fallthrough-return26  %3 = call iX @llvm.fshl.iX(iX %0, iX %0, iX %1)27  ret iX %328}29 30define iX @testRight(iX noundef %0, iX noundef %1) {31; I32-LABEL: testRight:32; I32:         .functype testRight (i32, i32) -> (i32)33; I32-NEXT:  # %bb.0:34; I32-NEXT:    local.get 035; I32-NEXT:    local.get 136; I32-NEXT:    i32.rotr37; I32-NEXT:    # fallthrough-return38;39; I64-LABEL: testRight:40; I64:         .functype testRight (i64, i64) -> (i64)41; I64-NEXT:  # %bb.0:42; I64-NEXT:    local.get 043; I64-NEXT:    local.get 144; I64-NEXT:    i64.rotr45; I64-NEXT:    # fallthrough-return46  %3 = call iX @llvm.fshr.iX(iX %0, iX %0, iX %1)47  ret iX %348}49