mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-25 17:26:07 +00:00
13 lines
483 B
C
13 lines
483 B
C
// RUN: %clang_cc1 %s -emit-llvm -o - -triple=avr-unknown-unknown -mdouble=64 | \
|
|
// RUN: FileCheck --check-prefix=AVR-FP64 %s
|
|
// RUN: %clang_cc1 %s -emit-llvm -o - -triple=avr-unknown-unknown -mdouble=32 | \
|
|
// RUN: FileCheck --check-prefix=AVR-FP32 %s
|
|
|
|
double x = 0;
|
|
int size = sizeof(x);
|
|
|
|
// AVR-FP64: @x ={{.*}} global double {{.*}}, align 1
|
|
// AVR-FP64: @size ={{.*}} global i16 8
|
|
// AVR-FP32: @x ={{.*}} global float {{.*}}, align 1
|
|
// AVR-FP32: @size ={{.*}} global i16 4
|