brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.9 KiB · 164dbd8 Raw
60 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 62; RUN: llc < %s -mtriple=aarch64 -mattr=+neon | FileCheck %s --check-prefixes=CHECK,CHECK-SD3; RUN: llc < %s -mtriple=aarch64 -mattr=+neon -global-isel -global-isel-abort=2 2>&1 | FileCheck %s --check-prefixes=CHECK,CHECK-GI4 5; CHECK-GI:       warning: Instruction selection used fallback path for testmsxs6; CHECK-GI-NEXT:  warning: Instruction selection used fallback path for testmsws7; CHECK-GI-NEXT:  warning: Instruction selection used fallback path for testmsxd8; CHECK-GI-NEXT:  warning: Instruction selection used fallback path for testmswd9 10define i64 @testmsxs(float %x) {11; CHECK-LABEL: testmsxs:12; CHECK:       // %bb.0: // %entry13; CHECK-NEXT:    frintx s0, s014; CHECK-NEXT:    fcvtzs w8, s015; CHECK-NEXT:    sxtw x0, w816; CHECK-NEXT:    ret17entry:18  %0 = tail call i32 @llvm.lrint.i32.f32(float %x)19  %conv = sext i32 %0 to i6420  ret i64 %conv21}22 23define i32 @testmsws(float %x) {24; CHECK-LABEL: testmsws:25; CHECK:       // %bb.0: // %entry26; CHECK-NEXT:    frintx s0, s027; CHECK-NEXT:    fcvtzs w0, s028; CHECK-NEXT:    ret29entry:30  %0 = tail call i32 @llvm.lrint.i32.f32(float %x)31  ret i32 %032}33 34define i64 @testmsxd(double %x) {35; CHECK-LABEL: testmsxd:36; CHECK:       // %bb.0: // %entry37; CHECK-NEXT:    frintx d0, d038; CHECK-NEXT:    fcvtzs w8, d039; CHECK-NEXT:    sxtw x0, w840; CHECK-NEXT:    ret41entry:42  %0 = tail call i32 @llvm.lrint.i32.f64(double %x)43  %conv = sext i32 %0 to i6444  ret i64 %conv45}46 47define i32 @testmswd(double %x) {48; CHECK-LABEL: testmswd:49; CHECK:       // %bb.0: // %entry50; CHECK-NEXT:    frintx d0, d051; CHECK-NEXT:    fcvtzs w0, d052; CHECK-NEXT:    ret53entry:54  %0 = tail call i32 @llvm.lrint.i32.f64(double %x)55  ret i32 %056}57;; NOTE: These prefixes are unused and the list is autogenerated. Do not add tests below this line:58; CHECK-GI: {{.*}}59; CHECK-SD: {{.*}}60