brintos

brintos / llvm-project-archived public Read only

0
0
Text · 587 B · 3656a78 Raw
21 lines · plain
1; RUN: llc -mtriple=aarch64-none-linux-gnu -mattr=+neon < %s | FileCheck %s2 3; generated from4; __fp16 test(__fp16 a1, __fp16 a2) {5;    __fp16 res0;6;    __asm__("sqrshl %h[__res], %h[__A], %h[__B]"7;             : [__res] "=w" (res0)8;             : [__A] "w" (a1), [__B] "w" (a2)9;             :10;             );11;    return res0;12;}13 14; Function Attrs: nounwind readnone15define half @test(half %a1, half %a2) #0 {16entry:17  ;CHECK: sqrshl {{h[0-9]+}}, {{h[0-9]+}}, {{h[0-9]+}}18  %0 = tail call half asm "sqrshl ${0:h}, ${1:h}, ${2:h}", "=w,w,w" (half %a1, half %a2) #119  ret half %020}21