aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Driver/riscv-default-features.c
blob: 4c3883c1cc1184d0ca65f651524d9905119fb337 (plain)
1
2
3
4
5
6
7
8
9
10
// RUN: %clang --target=riscv32-unknown-elf -S -emit-llvm %s -o - | FileCheck %s -check-prefix=RV32
// RUN: %clang --target=riscv64-unknown-elf -S -emit-llvm %s -o - | FileCheck %s -check-prefix=RV64

// RV32: "target-features"="+32bit,+a,+c,+m,+relax,
// RV64: "target-features"="+64bit,+a,+c,+m,+relax,

// Dummy function
int foo(void){
  return  3;
}