brintos

brintos / llvm-project-archived public Read only

0
0
Text · 521 B · af876a7 Raw
12 lines · plain
1; RUN: opt -S -passes=declare-runtime-libcalls -mtriple=x86_64-unknown-linux-gnu < %s | FileCheck %s2 3define noundef nofpclass(nan) float @sqrtf(float %x) "foo" {4  %ret = call float asm "; $0 = sqrt($1)", "=r,r"(float %x)5  ret float %ret6}7 8; FIXME: Individual fields of nofpclass not merged9; CHECK: define noundef nofpclass(ninf nsub nnorm) float @sqrtf(float %x) [[SQRT_ATTR:#[0-9]+]] {10 11; CHECK: attributes [[SQRT_ATTR]] = { mustprogress nocallback nofree nosync nounwind willreturn memory(errnomem: write) "foo" }12