| 1 | // RUN: %clang_cc1 -triple powerpc64le-unknown-unknown -target-feature +htm -DHTM_HEADER -ffreestanding -emit-llvm -o - %s | FileCheck %s |
| 2 | // RUN: %clang_cc1 -triple powerpc64le-unknown-unknown -target-feature +htm -DHTM_HEADER -ffreestanding -emit-llvm -x c++ -o - %s | FileCheck %s |
| 3 | // RUN: %clang_cc1 -triple powerpc64le-unknown-unknown -target-feature +htm -DHTMXL_HEADER -ffreestanding -emit-llvm -o - %s | FileCheck %s |
| 4 | // RUN: %clang_cc1 -triple powerpc64le-unknown-unknown -target-feature +htm -DHTMXL_HEADER -ffreestanding -emit-llvm -x c++ -o - %s | FileCheck %s |
| 5 | |
| 6 | #ifdef HTM_HEADER |
| 7 | #include <htmintrin.h> |
| 8 | #endif |
| 9 | |
| 10 | #ifdef HTMXL_HEADER |
| 11 | #include <htmxlintrin.h> |
| 12 | #endif |
| 13 | |
| 14 | // Verify that simply including the headers does not generate any code |
| 15 | // (i.e. all inline routines in the header are marked "static") |
| 16 | |
| 17 | // CHECK: target triple = "powerpc64 |
| 18 | // CHECK-NEXT: {{^$}} |
| 19 | // CHECK-NEXT: {{llvm\..*}} |
| 20 | |