| 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 |
| 5 |
|
| 6 |
double x = 0; |
| 7 |
int size = sizeof(x); |
| 8 |
|
| 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 |