[LLVM][IR] Use splat syntax when printing ConstantExpr based splats. (#116856)
[llvm-project.git] / clang / test / CodeGen / mdouble.c
blobdab0c5f834bc328fdf10e6c252ab3349aad96016
1 // RUN: %clang_cc1 %s -emit-llvm -o - -triple=avr-unknown-unknown -mdouble=64 | \
2 // RUN: FileCheck --check-prefix=AVR-FP64 %s
3 // RUN: %clang_cc1 %s -emit-llvm -o - -triple=avr-unknown-unknown -mdouble=32 | \
4 // RUN: FileCheck --check-prefix=AVR-FP32 %s
6 double x = 0;
7 int size = sizeof(x);
9 // AVR-FP64: @x ={{.*}} global double {{.*}}, align 1
10 // AVR-FP64: @size ={{.*}} global i16 8
11 // AVR-FP32: @x ={{.*}} global float {{.*}}, align 1
12 // AVR-FP32: @size ={{.*}} global i16 4