llvm-for-llvmta/tools/clang/test/CodeGen/kr-func-promote.c

13 lines
361 B
C
Raw Normal View History

2022-04-25 13:02:35 +02:00
// RUN: %clang_cc1 -triple i386-unknown-unknown %s -emit-llvm -o - | FileCheck %s
// CHECK: i32 @a(i32
int a();
int a(x) short x; {return x;}
// CHECK: void @b(double
// CHECK: %[[ADDR:.*]] = alloca float, align 4
// CHECK: %[[TRUNC:.*]] = fptrunc double %0 to float
// CHECK: store float %[[TRUNC]], float* %[[ADDR]], align 4
void b();
void b(f) float f; {}