Home | History | Annotate | Download | only in CodeGen
      1 // RUN: %clang_cc1 -triple nvptx-unknown-unknown -target-cpu sm_20 -O3 -S -o %t %s -emit-llvm
      2 // RUN: %clang_cc1 -triple nvptx-unknown-unknown -target-cpu sm_21 -O3 -S -o %t %s -emit-llvm
      3 // RUN: %clang_cc1 -triple nvptx-unknown-unknown -target-cpu sm_30 -O3 -S -o %t %s -emit-llvm
      4 // RUN: %clang_cc1 -triple nvptx-unknown-unknown -target-cpu sm_35 -O3 -S -o %t %s -emit-llvm
      5 
      6 // Make sure clang accepts all supported architectures.
      7 
      8 void foo(float* a,
      9          float* b) {
     10   a[0] = b[0];
     11 }
     12