brintos

brintos / llvm-project-archived public Read only

0
0
Text · 834 B · 50f7d6d Raw
25 lines · plain
1; RUN: llc < %s -mtriple=aarch64 -o - | FileCheck %s2 3%struct.a= type { i64, i64, i64, i64 }4 5; DAG combine will try to perform a transformation that  creates a vcvtfp2fxs6; with a v4f64 input. Since v4i64 is not legal we should bail out. We can7; pottentially still create the vcvtfp2fxs node after legalization (but on a8; v2f64).9 10; CHECK-LABEL: fun111define void @fun1() local_unnamed_addr {12entry:13  %mul = fmul <4 x double> zeroinitializer, <double 6.553600e+04, double 6.553600e+04, double 6.553600e+04, double 6.553600e+04>14  %toi = fptosi <4 x double> %mul to <4 x i64>15  %ptr = getelementptr inbounds %struct.a, ptr undef, i64 0, i32 216  %elem = extractelement <4 x i64> %toi, i32 117  store i64 %elem, ptr %ptr, align 818  call void @llvm.trap()19  unreachable20}21 22; Function Attrs: noreturn nounwind23declare void @llvm.trap()24 25