brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · 7d1d8e4 Raw
42 lines · plain
1// RUN: not %clang -target amdgcn-amd-amdhsa \2// RUN:   -mcpu=gfx908xnack -nostdlib \3// RUN:   %s 2>&1 | FileCheck -check-prefix=NOPLUS %s4 5// NOPLUS: error: invalid target ID 'gfx908xnack'6 7// RUN: not %clang -target amdgcn-amd-amdpal \8// RUN:   -mcpu=gfx908:xnack+:xnack+ -nostdlib \9// RUN:   %s 2>&1 | FileCheck -check-prefix=ORDER %s10 11// ORDER: error: invalid target ID 'gfx908:xnack+:xnack+'12 13// RUN: not %clang -target amdgcn--mesa3d \14// RUN:   -mcpu=gfx908:unknown+ -nostdlib \15// RUN:   %s 2>&1 | FileCheck -check-prefix=UNK %s16 17// UNK: error: invalid target ID 'gfx908:unknown+'18 19// RUN: not %clang -target amdgcn-amd-amdhsa \20// RUN:   -mcpu=gfx908:sram-ecc+:unknown+ -nostdlib \21// RUN:   %s 2>&1 | FileCheck -check-prefix=MIXED %s22 23// MIXED: error: invalid target ID 'gfx908:sram-ecc+:unknown+'24 25// RUN: not %clang -target amdgcn-amd-amdhsa \26// RUN:   -mcpu=gfx900:sram-ecc+ -nostdlib \27// RUN:   %s 2>&1 | FileCheck -check-prefix=UNSUP %s28 29// UNSUP: error: invalid target ID 'gfx900:sram-ecc+'30 31// RUN: not %clang -target amdgcn-amd-amdhsa \32// RUN:   -mcpu=gfx900:xnack -nostdlib \33// RUN:   %s 2>&1 | FileCheck -check-prefix=NOSIGN %s34 35// NOSIGN: error: invalid target ID 'gfx900:xnack'36 37// RUN: not %clang -target amdgcn-amd-amdhsa \38// RUN:   -mcpu=gfx900+xnack -nostdlib \39// RUN:   %s 2>&1 | FileCheck -check-prefix=NOCOLON %s40 41// NOCOLON: error: invalid target ID 'gfx900+xnack'42