diff options
Diffstat (limited to 'test/CodeGen/mips-inline-asm-modifiers.c')
| -rw-r--r-- | test/CodeGen/mips-inline-asm-modifiers.c | 11 | 
1 files changed, 9 insertions, 2 deletions
diff --git a/test/CodeGen/mips-inline-asm-modifiers.c b/test/CodeGen/mips-inline-asm-modifiers.c index 7c4ca2ce1446..9d697e8b228e 100644 --- a/test/CodeGen/mips-inline-asm-modifiers.c +++ b/test/CodeGen/mips-inline-asm-modifiers.c @@ -5,12 +5,16 @@  int printf(const char*, ...); -  // CHECK: %{{[0-9]+}} = call i32 asm ".set noreorder;\0Alw    $0,$1;\0A.set reorder;\0A", "=r,*m"(i32* getelementptr inbounds ([8 x i32]* @b, i32 {{[0-9]+}}, i32 {{[0-9]+}})) #2, !srcloc !0 -  // CHECK: %{{[0-9]+}} = call i32 asm "lw    $0,${1:D};\0A", "=r,*m"(i32* getelementptr inbounds ([8 x i32]* @b, i32 {{[0-9]+}}, i32 {{[0-9]+}})) #2, !srcloc !1 +typedef int v4i32 __attribute__((vector_size(16))); + +  // CHECK: %{{[0-9]+}} = call i32 asm ".set noreorder;\0Alw    $0,$1;\0A.set reorder;\0A", "=r,*m"(i32* getelementptr inbounds ([8 x i32]* @b, i32 {{[0-9]+}}, i32 {{[0-9]+}})) #2, +  // CHECK: %{{[0-9]+}} = call i32 asm "lw    $0,${1:D};\0A", "=r,*m"(i32* getelementptr inbounds ([8 x i32]* @b, i32 {{[0-9]+}}, i32 {{[0-9]+}})) #2, +  // CHECK: %{{[0-9]+}} = call <4 x i32> asm "ldi.w ${0:w},1", "=f"  int b[8] = {0,1,2,3,4,5,6,7};  int  main()  {    int i; +  v4i32 v4i32_r;    // The first word. Notice, no 'D'    {asm ( @@ -29,6 +33,9 @@ int  main()    : "m" (*(b+4))    );} +  // MSA registers +  {asm ("ldi.w %w0,1" : "=f" (v4i32_r));} +    printf("%d\n",i);    return 1;  | 
