Home | History | Annotate | Download | only in CodeGen
      1 // REQUIRES: powerpc-registered-target
      2 // RUN: %clang_cc1 -triple powerpc-unknown-unknown -emit-llvm %s -o - | FileCheck %s
      3 
      4 void test_eh_return_data_regno()
      5 {
      6   volatile int res;
      7   res = __builtin_eh_return_data_regno(0);  // CHECK: store volatile i32 3
      8   res = __builtin_eh_return_data_regno(1);  // CHECK: store volatile i32 4
      9 }
     10 
     11 // CHECK-LABEL: define i64 @test_builtin_ppc_get_timebase
     12 long long test_builtin_ppc_get_timebase() {
     13   // CHECK: call i64 @llvm.readcyclecounter()
     14   return __builtin_ppc_get_timebase();
     15 }
     16 
     17