xref: /llvm-project/clang/test/Driver/riscv-default-features.c (revision ce0c149f65d9fe708b91610fb94d3db443247262)
1 // RUN: %clang --target=riscv32-unknown-elf -S -emit-llvm %s -o - | FileCheck %s -check-prefix=RV32
2 // RUN: %clang --target=riscv64-unknown-elf -S -emit-llvm %s -o - | FileCheck %s -check-prefix=RV64
3 
4 // RV32: "target-features"="+32bit,+a,+c,+m,+relax,
5 // RV64: "target-features"="+64bit,+a,+c,+m,+relax,
6 
7 // Dummy function
foo(void)8 int foo(void){
9   return  3;
10 }
11