brintos

brintos / llvm-project-archived public Read only

0
0
Text · 819 B · 324451b Raw
25 lines · plain
1; RUN: llc -o - -verify-machineinstrs -global-isel -global-isel-abort=2 %s 2>&1 | FileCheck %s2target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128"3target triple = "aarch64-unknown-unknown"4 5; We should fall back in the translator if we don't have no-neon/no-fp support.6; CHECK: Instruction selection used fallback path for foo7define void @foo(ptr %ptr) #0 align 2 {8entry:9  store i128 0, ptr %ptr, align 1610  ret void11}12 13; This test below will crash the legalizer due to trying to use legacy rules,14; if we don't fall back in the translator.15declare i1 @zoo()16; CHECK: Instruction selection used fallback path for bar17define i32 @bar() #0 {18  %1 = call zeroext i1 @zoo()19  %2 = zext i1 %1 to i3220  ret i32 %221}22 23attributes #0 = { "use-soft-float"="false" "target-features"="-fp-armv8,-neon" }24 25