clang/test/CodeGen/x86-hreset-intrin.c
raw| 1 | // RUN: %clang_cc1 %s -ffreestanding -triple x86_64-unknown-unknown -target-feature +hreset -emit-llvm -o - | FileCheck %s |
| 2 | // RUN: %clang_cc1 %s -ffreestanding -triple i386-unknown-unknown -target-feature +hreset -emit-llvm -o - | FileCheck %s |
| 3 | |
| 4 | #include <immintrin.h> |
| 5 | |
| 6 | void test_hreset(int a) |
| 7 | { |
| 8 | // CHECK-LABEL: test_hreset |
| 9 | // CHECK: call void asm sideeffect "hreset $$0", "{ax},~{dirflag},~{fpsr},~{flags}"(i32 %{{[0-9]}}) |
| 10 | _hreset(a); |
| 11 | } |