brintos

brintos / llvm-project-archived public Read only

0
0
Text · 500 B · 2e1369f Raw
15 lines · c
1// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py2// RUN: %clang_cc1 -triple riscv32 -target-feature +zihintpause -emit-llvm %s -o - \3// RUN:     | FileCheck %s4// RUN: %clang_cc1 -triple riscv64 -target-feature +zihintpause -emit-llvm %s -o - \5// RUN:     | FileCheck %s6 7// CHECK-LABEL: @test_builtin_pause(8// CHECK-NEXT:  entry:9// CHECK-NEXT:    call void @llvm.riscv.pause()10// CHECK-NEXT:    ret void11//12void test_builtin_pause() {13    __builtin_riscv_pause();14}15