Home | History | Annotate | Download | only in CodeGen
      1 // RUN: %clang -target mipsel-unknown-linux -S -o - -emit-llvm %s
      2 
      3 /*
      4     This checks that the frontend will accept both
      5     enumerated and symbolic Mips GPR register names.
      6 
      7     Any bad names will make the frontend choke.
      8  */
      9 
     10 main()
     11 {
     12 
     13     __asm__ __volatile__ (".set noat \n\t addi $7,$at,77":::"at");
     14     __asm__ __volatile__ ("addi $7,$v0,77":::"v0");
     15     __asm__ __volatile__ ("addi $7,$v1,77":::"v1");
     16     __asm__ __volatile__ ("addi $7,$a0,77":::"a0");
     17     __asm__ __volatile__ ("addi $7,$a1,77":::"a1");
     18     __asm__ __volatile__ ("addi $7,$a2,77":::"a2");
     19     __asm__ __volatile__ ("addi $7,$a3,77":::"a3");
     20     __asm__ __volatile__ ("addi $7,$t0,77":::"t0");
     21     __asm__ __volatile__ ("addi $7,$t1,77":::"t1");
     22     __asm__ __volatile__ ("addi $7,$t2,77":::"t2");
     23     __asm__ __volatile__ ("addi $7,$t3,77":::"t3");
     24     __asm__ __volatile__ ("addi $7,$t4,77":::"t4");
     25     __asm__ __volatile__ ("addi $7,$t5,77":::"t5");
     26     __asm__ __volatile__ ("addi $7,$t6,77":::"t6");
     27     __asm__ __volatile__ ("addi $7,$t7,77":::"t7");
     28     __asm__ __volatile__ ("addi $7,$s0,77":::"s0");
     29     __asm__ __volatile__ ("addi $7,$s1,77":::"s1");
     30     __asm__ __volatile__ ("addi $7,$s2,77":::"s2");
     31     __asm__ __volatile__ ("addi $7,$s3,77":::"s3");
     32     __asm__ __volatile__ ("addi $7,$s4,77":::"s4");
     33     __asm__ __volatile__ ("addi $7,$s5,77":::"s5");
     34     __asm__ __volatile__ ("addi $7,$s6,77":::"s6");
     35     __asm__ __volatile__ ("addi $7,$s7,77":::"s7");
     36     __asm__ __volatile__ ("addi $7,$t8,77":::"t8");
     37     __asm__ __volatile__ ("addi $7,$t9,77":::"t9");
     38     __asm__ __volatile__ ("addi $7,$k0,77":::"k0");
     39     __asm__ __volatile__ ("addi $7,$k1,77":::"k1");
     40     __asm__ __volatile__ ("addi $7,$gp,77":::"gp");
     41     __asm__ __volatile__ ("addi $7,$sp,77":::"sp");
     42     __asm__ __volatile__ ("addi $7,$fp,77":::"fp");
     43     __asm__ __volatile__ ("addi $7,$sp,77":::"$sp");
     44     __asm__ __volatile__ ("addi $7,$fp,77":::"$fp");
     45     __asm__ __volatile__ ("addi $7,$ra,77":::"ra");
     46 
     47     __asm__ __volatile__ ("addi $7,$0,77":::"$0");
     48     __asm__ __volatile__ (".set noat \n\t addi $7,$1,77":::"$1");
     49     __asm__ __volatile__ ("addi $7,$2,77":::"$2");
     50     __asm__ __volatile__ ("addi $7,$3,77":::"$3");
     51     __asm__ __volatile__ ("addi $7,$4,77":::"$4");
     52     __asm__ __volatile__ ("addi $7,$5,77":::"$5");
     53     __asm__ __volatile__ ("addi $7,$6,77":::"$6");
     54     __asm__ __volatile__ ("addi $7,$7,77":::"$7");
     55     __asm__ __volatile__ ("addi $7,$8,77":::"$8");
     56     __asm__ __volatile__ ("addi $7,$9,77":::"$9");
     57     __asm__ __volatile__ ("addi $7,$10,77":::"$10");
     58     __asm__ __volatile__ ("addi $7,$11,77":::"$10");
     59     __asm__ __volatile__ ("addi $7,$12,77":::"$12");
     60     __asm__ __volatile__ ("addi $7,$13,77":::"$13");
     61     __asm__ __volatile__ ("addi $7,$14,77":::"$14");
     62     __asm__ __volatile__ ("addi $7,$15,77":::"$15");
     63     __asm__ __volatile__ ("addi $7,$16,77":::"$16");
     64     __asm__ __volatile__ ("addi $7,$17,77":::"$17");
     65     __asm__ __volatile__ ("addi $7,$18,77":::"$18");
     66     __asm__ __volatile__ ("addi $7,$19,77":::"$19");
     67     __asm__ __volatile__ ("addi $7,$20,77":::"$20");
     68     __asm__ __volatile__ ("addi $7,$21,77":::"$21");
     69     __asm__ __volatile__ ("addi $7,$22,77":::"$22");
     70     __asm__ __volatile__ ("addi $7,$23,77":::"$23");
     71     __asm__ __volatile__ ("addi $7,$24,77":::"$24");
     72     __asm__ __volatile__ ("addi $7,$25,77":::"$25");
     73     __asm__ __volatile__ ("addi $7,$26,77":::"$26");
     74     __asm__ __volatile__ ("addi $7,$27,77":::"$27");
     75     __asm__ __volatile__ ("addi $7,$28,77":::"$28");
     76     __asm__ __volatile__ ("addi $7,$29,77":::"$29");
     77     __asm__ __volatile__ ("addi $7,$30,77":::"$30");
     78     __asm__ __volatile__ ("addi $7,$31,77":::"$31");
     79 
     80 }
     81