1*97e49605SZi Xuan Wu // RUN: %clang -target csky-unknown-elf -march=ck801 -### %s \ 2*97e49605SZi Xuan Wu // RUN: -fsyntax-only 2>&1 | FileCheck %s -check-prefixes=CHECK-CK801 3*97e49605SZi Xuan Wu 4*97e49605SZi Xuan Wu // CHECK-CK801: "-target-cpu" "ck801" 5*97e49605SZi Xuan Wu // CHECK-CK801: "-target-feature" "+elrw" "-target-feature" "+trust" 6*97e49605SZi Xuan Wu // CHECK-CK801: "-target-feature" "+e1" 7*97e49605SZi Xuan Wu 8*97e49605SZi Xuan Wu // RUN: %clang -target csky-unknown-elf -march=ck802 -### %s \ 9*97e49605SZi Xuan Wu // RUN: -fsyntax-only 2>&1 | FileCheck %s -check-prefixes=CHECK-CK802 10*97e49605SZi Xuan Wu 11*97e49605SZi Xuan Wu // CHECK-CK802: "-target-cpu" "ck802" 12*97e49605SZi Xuan Wu // CHECK-CK802: "-target-feature" "+elrw" "-target-feature" "+trust" 13*97e49605SZi Xuan Wu // CHECK-CK802: "-target-feature" "+nvic" "-target-feature" "+e1" 14*97e49605SZi Xuan Wu // CHECK-CK802: "-target-feature" "+e2" 15*97e49605SZi Xuan Wu 16*97e49605SZi Xuan Wu // RUN: %clang -target csky-unknown-elf -march=ck803 -### %s \ 17*97e49605SZi Xuan Wu // RUN: -fsyntax-only 2>&1 | FileCheck %s -check-prefixes=CHECK-CK803 18*97e49605SZi Xuan Wu 19*97e49605SZi Xuan Wu // CHECK-CK803: "-target-cpu" "ck803" 20*97e49605SZi Xuan Wu // CHECK-CK803: "-target-feature" "+hwdiv" "-target-feature" "+elrw" 21*97e49605SZi Xuan Wu // CHECK-CK803: "-target-feature" "+trust" "-target-feature" "+nvic" 22*97e49605SZi Xuan Wu // CHECK-CK803: "-target-feature" "+e1" "-target-feature" "+e2" "-target-feature" "+2e3" 23*97e49605SZi Xuan Wu // CHECK-CK803: "-target-feature" "+mp" 24*97e49605SZi Xuan Wu 25*97e49605SZi Xuan Wu // RUN: %clang -target csky-unknown-elf -march=ck803s -### %s \ 26*97e49605SZi Xuan Wu // RUN: -fsyntax-only 2>&1 | FileCheck %s -check-prefixes=CHECK-CK803S 27*97e49605SZi Xuan Wu 28*97e49605SZi Xuan Wu // CHECK-CK803S: "-target-cpu" "ck803s" 29*97e49605SZi Xuan Wu // CHECK-CK803S: "-target-feature" "+hwdiv" "-target-feature" "+elrw" 30*97e49605SZi Xuan Wu // CHECK-CK803S: "-target-feature" "+trust" "-target-feature" "+nvic" 31*97e49605SZi Xuan Wu // CHECK-CK803S: "-target-feature" "+e1" "-target-feature" "+e2" 32*97e49605SZi Xuan Wu // CHECK-CK803S: "-target-feature" "+2e3" "-target-feature" "+mp" 33*97e49605SZi Xuan Wu 34*97e49605SZi Xuan Wu // RUN: %clang -target csky-unknown-elf -march=ck804 -### %s \ 35*97e49605SZi Xuan Wu // RUN: -fsyntax-only 2>&1 | FileCheck %s -check-prefixes=CHECK-CK804 36*97e49605SZi Xuan Wu 37*97e49605SZi Xuan Wu // CHECK-CK804: "-target-cpu" "ck804" 38*97e49605SZi Xuan Wu // CHECK-CK804: "-target-feature" "+hwdiv" "-target-feature" "+elrw" 39*97e49605SZi Xuan Wu // CHECK-CK804: "-target-feature" "+trust" "-target-feature" "+nvic" 40*97e49605SZi Xuan Wu // CHECK-CK804: "-target-feature" "+doloop" "-target-feature" "+e1" 41*97e49605SZi Xuan Wu // CHECK-CK804: "-target-feature" "+e2" "-target-feature" "+2e3" 42*97e49605SZi Xuan Wu // CHECK-CK804: "-target-feature" "+mp" "-target-feature" "+3e3r1" 43*97e49605SZi Xuan Wu // CHECK-CK804: "-target-feature" "+3e3r2" "-target-feature" "+3e3r3" 44*97e49605SZi Xuan Wu 45*97e49605SZi Xuan Wu // RUN: %clang -target csky-unknown-elf -march=ck805 -### %s \ 46*97e49605SZi Xuan Wu // RUN: -fsyntax-only 2>&1 | FileCheck %s -check-prefixes=CHECK-CK805 47*97e49605SZi Xuan Wu 48*97e49605SZi Xuan Wu // CHECK-CK805: "-target-cpu" "ck805" 49*97e49605SZi Xuan Wu // CHECK-CK805: "-target-feature" "+hwdiv" "-target-feature" "+elrw" 50*97e49605SZi Xuan Wu // CHECK-CK805: "-target-feature" "+trust" "-target-feature" "+nvic" 51*97e49605SZi Xuan Wu // CHECK-CK805: "-target-feature" "+doloop" "-target-feature" "+high-registers" 52*97e49605SZi Xuan Wu // CHECK-CK805: "-target-feature" "+vdsp2e3" "-target-feature" "+vdspv2" "-target-feature" "+e1" 53*97e49605SZi Xuan Wu // CHECK-CK805: "-target-feature" "+e2" "-target-feature" "+2e3" "-target-feature" "+mp" 54*97e49605SZi Xuan Wu // CHECK-CK805: "-target-feature" "+3e3r1" "-target-feature" "+3e3r2" "-target-feature" "+3e3r3" 55*97e49605SZi Xuan Wu 56*97e49605SZi Xuan Wu // RUN: %clang -target csky-unknown-elf -march=ck807 -### %s \ 57*97e49605SZi Xuan Wu // RUN: -fsyntax-only 2>&1 | FileCheck %s -check-prefixes=CHECK-CK807 58*97e49605SZi Xuan Wu 59*97e49605SZi Xuan Wu // CHECK-CK807: "-target-cpu" "ck807" 60*97e49605SZi Xuan Wu // CHECK-CK807: "-target-feature" "+hwdiv" "-target-feature" "+edsp" 61*97e49605SZi Xuan Wu // CHECK-CK807: "-target-feature" "+dsp1e2" "-target-feature" "+dspe60" "-target-feature" "+elrw" 62*97e49605SZi Xuan Wu // CHECK-CK807: "-target-feature" "+trust" "-target-feature" "+cache" "-target-feature" "+nvic" 63*97e49605SZi Xuan Wu // CHECK-CK807: "-target-feature" "+high-registers" "-target-feature" "+hard-tp" "-target-feature" "+e1" 64*97e49605SZi Xuan Wu // CHECK-CK807: "-target-feature" "+e2" "-target-feature" "+2e3" "-target-feature" "+mp" 65*97e49605SZi Xuan Wu // CHECK-CK807: "-target-feature" "+3e7" "-target-feature" "+mp1e2" 66*97e49605SZi Xuan Wu 67*97e49605SZi Xuan Wu // RUN: %clang -target csky-unknown-elf -march=ck810 -### %s \ 68*97e49605SZi Xuan Wu // RUN: -fsyntax-only 2>&1 | FileCheck %s -check-prefixes=CHECK-CK810 69*97e49605SZi Xuan Wu 70*97e49605SZi Xuan Wu // CHECK-CK810: "-target-cpu" "ck810" 71*97e49605SZi Xuan Wu // CHECK-CK810: "-target-feature" "+hwdiv" "-target-feature" "+edsp" "-target-feature" "+dsp1e2" 72*97e49605SZi Xuan Wu // CHECK-CK810: "-target-feature" "+dspe60" "-target-feature" "+elrw" "-target-feature" "+trust" 73*97e49605SZi Xuan Wu // CHECK-CK810: "-target-feature" "+cache" "-target-feature" "+nvic" "-target-feature" "+high-registers" 74*97e49605SZi Xuan Wu // CHECK-CK810: "-target-feature" "+hard-tp" "-target-feature" "+e1" "-target-feature" "+e2" "-target-feature" "+2e3" 75*97e49605SZi Xuan Wu // CHECK-CK810: "-target-feature" "+mp" "-target-feature" "+3e7" "-target-feature" "+mp1e2" "-target-feature" "+7e10" 76*97e49605SZi Xuan Wu 77*97e49605SZi Xuan Wu // RUN: %clang -target csky-unknown-elf -march=ck810v -### %s \ 78*97e49605SZi Xuan Wu // RUN: -fsyntax-only 2>&1 | FileCheck %s -check-prefixes=CHECK-CK810V 79*97e49605SZi Xuan Wu 80*97e49605SZi Xuan Wu // CHECK-CK810V: "-target-cpu" "ck810v" 81*97e49605SZi Xuan Wu // CHECK-CK810V: "-target-feature" "+hwdiv" "-target-feature" "+edsp" "-target-feature" "+dsp1e2" 82*97e49605SZi Xuan Wu // CHECK-CK810V: "-target-feature" "+dspe60" "-target-feature" "+elrw" "-target-feature" "+trust" 83*97e49605SZi Xuan Wu // CHECK-CK810V: "-target-feature" "+cache" "-target-feature" "+nvic" "-target-feature" "+high-registers" 84*97e49605SZi Xuan Wu // CHECK-CK810V: "-target-feature" "+hard-tp" "-target-feature" "+vdspv1" "-target-feature" "+e1" 85*97e49605SZi Xuan Wu // CHECK-CK810V: "-target-feature" "+e2" "-target-feature" "+2e3" "-target-feature" "+mp" 86*97e49605SZi Xuan Wu // CHECK-CK810V: "-target-feature" "+3e7" "-target-feature" "+mp1e2" "-target-feature" "+7e10" 87*97e49605SZi Xuan Wu 88*97e49605SZi Xuan Wu // RUN: %clang -target csky-unknown-elf -march=ck860 -### %s \ 89*97e49605SZi Xuan Wu // RUN: -fsyntax-only 2>&1 | FileCheck %s -check-prefixes=CHECK-CK860 90*97e49605SZi Xuan Wu 91*97e49605SZi Xuan Wu // CHECK-CK860: "-target-cpu" "ck860" 92*97e49605SZi Xuan Wu // CHECK-CK860: "-target-feature" "+hwdiv" "-target-feature" "+dspe60" "-target-feature" "+elrw" 93*97e49605SZi Xuan Wu // CHECK-CK860: "-target-feature" "+trust" "-target-feature" "+cache" "-target-feature" "+nvic" 94*97e49605SZi Xuan Wu // CHECK-CK860: "-target-feature" "+doloop" "-target-feature" "+high-registers" "-target-feature" "+hard-tp" 95*97e49605SZi Xuan Wu // CHECK-CK860: "-target-feature" "+e1" "-target-feature" "+e2" "-target-feature" "+2e3" "-target-feature" "+mp" 96*97e49605SZi Xuan Wu // CHECK-CK860: "-target-feature" "+3e3r1" "-target-feature" "+3e3r2" "-target-feature" "+3e3r3" 97*97e49605SZi Xuan Wu // CHECK-CK860: "-target-feature" "+3e7" "-target-feature" "+mp1e2" "-target-feature" "+7e10" "-target-feature" "+10e60" 98*97e49605SZi Xuan Wu 99*97e49605SZi Xuan Wu // RUN: %clang -target csky-unknown-elf -march=ck860v -### %s \ 100*97e49605SZi Xuan Wu // RUN: -fsyntax-only 2>&1 | FileCheck %s -check-prefixes=CHECK-CK860V 101*97e49605SZi Xuan Wu 102*97e49605SZi Xuan Wu // CHECK-CK860V: "-target-cpu" "ck860v" 103*97e49605SZi Xuan Wu // CHECK-CK860V: "-target-feature" "+hwdiv" "-target-feature" "+dspe60" "-target-feature" "+elrw" "-target-feature" "+trust" 104*97e49605SZi Xuan Wu // CHECK-CK860V: "-target-feature" "+cache" "-target-feature" "+nvic" "-target-feature" "+doloop" 105*97e49605SZi Xuan Wu // CHECK-CK860V: "-target-feature" "+high-registers" "-target-feature" "+vdsp2e60f" "-target-feature" "+vdspv2" 106*97e49605SZi Xuan Wu // CHECK-CK860V: "-target-feature" "+hard-tp" "-target-feature" "+e1" "-target-feature" "+e2" "-target-feature" "+2e3" 107*97e49605SZi Xuan Wu // CHECK-CK860V: "-target-feature" "+mp" "-target-feature" "+3e3r1" "-target-feature" "+3e3r2" "-target-feature" "+3e3r3" 108*97e49605SZi Xuan Wu // CHECK-CK860V: "-target-feature" "+3e7" "-target-feature" "+mp1e2" "-target-feature" "+7e10" "-target-feature" "+10e60"