mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-18 09:06:43 +00:00

- Fix a variable naming mismatch - Fix gcc extension pointer arithmetic on void to cast to char *. - Test that the header (and htmintrin.h) parse. llvm-svn: 298318
20 lines
896 B
C
20 lines
896 B
C
// RUN: %clang_cc1 -triple powerpc64le-unknown-unknown -target-feature +htm -DHTM_HEADER -ffreestanding -emit-llvm -o - %s | FileCheck %s
|
|
// RUN: %clang_cc1 -triple powerpc64le-unknown-unknown -target-feature +htm -DHTM_HEADER -ffreestanding -emit-llvm -x c++ -o - %s | FileCheck %s
|
|
// RUN: %clang_cc1 -triple powerpc64le-unknown-unknown -target-feature +htm -DHTMXL_HEADER -ffreestanding -emit-llvm -o - %s | FileCheck %s
|
|
// RUN: %clang_cc1 -triple powerpc64le-unknown-unknown -target-feature +htm -DHTMXL_HEADER -ffreestanding -emit-llvm -x c++ -o - %s | FileCheck %s
|
|
|
|
#ifdef HTM_HEADER
|
|
#include <htmintrin.h>
|
|
#endif
|
|
|
|
#ifdef HTMXL_HEADER
|
|
#include <htmxlintrin.h>
|
|
#endif
|
|
|
|
// Verify that simply including the headers does not generate any code
|
|
// (i.e. all inline routines in the header are marked "static")
|
|
|
|
// CHECK: target triple = "powerpc64
|
|
// CHECK-NEXT: {{^$}}
|
|
// CHECK-NEXT: {{llvm\..*}}
|