aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Driver/print-enabled-extensions/riscv-rocket-rv64.c
blob: bc99f7775b7e0a15771f11bb49622a75c8885601 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// REQUIRES: riscv-registered-target
// RUN: %clang --target=riscv64 --print-enabled-extensions -mcpu=rocket-rv64 | FileCheck --strict-whitespace %s

// Simple litmus test to check the frontend handling of this option is
// enabled.

// CHECK: Extensions enabled for the given RISC-V target
// CHECK-EMPTY:
// CHECK-NEXT: Name                 Version   Description
// CHECK-NEXT:     i                    2.1       'I' (Base Integer Instruction Set)
// CHECK-NEXT:     zicsr                2.0       'Zicsr' (CSRs)
// CHECK-NEXT:     zifencei             2.0       'Zifencei' (fence.i)
// CHECK-EMPTY: