Home | History | Annotate | Download | only in Fast-ISel
      1 ; ModuleID = 'loadstore2.c'
      2 target datalayout = "E-m:m-p:32:32-i8:8:32-i16:16:32-i64:64-n32-S64"
      3 target triple = "mips--linux-gnu"
      4 
      5 @c2 = common global i8 0, align 1
      6 @c1 = common global i8 0, align 1
      7 ; RUN: llc -march=mipsel -relocation-model=pic -O0 -fast-isel-abort=1 -mcpu=mips32r2 \
      8 ; RUN:     < %s | FileCheck %s
      9 ; RUN: llc -march=mipsel -relocation-model=pic -O0 -fast-isel-abort=1 -mcpu=mips32 \
     10 ; RUN:     < %s | FileCheck %s
     11 
     12 @s2 = common global i16 0, align 2
     13 @s1 = common global i16 0, align 2
     14 @i2 = common global i32 0, align 4
     15 @i1 = common global i32 0, align 4
     16 @f2 = common global float 0.000000e+00, align 4
     17 @f1 = common global float 0.000000e+00, align 4
     18 @d2 = common global double 0.000000e+00, align 8
     19 @d1 = common global double 0.000000e+00, align 8
     20 
     21 ; Function Attrs: nounwind
     22 define void @cfoo() #0 {
     23 entry:
     24   %0 = load i8, i8* @c2, align 1
     25   store i8 %0, i8* @c1, align 1
     26 ; CHECK-LABEL:	cfoo:
     27 ; CHECK:	lbu	$[[REGc:[0-9]+]], 0(${{[0-9]+}})
     28 ; CHECK:	sb	$[[REGc]], 0(${{[0-9]+}})
     29 
     30 
     31   ret void
     32 }
     33 
     34 ; Function Attrs: nounwind
     35 define void @sfoo() #0 {
     36 entry:
     37   %0 = load i16, i16* @s2, align 2
     38   store i16 %0, i16* @s1, align 2
     39 ; CHECK-LABEL:	sfoo:
     40 ; CHECK:	lhu	$[[REGs:[0-9]+]], 0(${{[0-9]+}})
     41 ; CHECK:	sh	$[[REGs]], 0(${{[0-9]+}})
     42 
     43   ret void
     44 }
     45 
     46 ; Function Attrs: nounwind
     47 define void @ifoo() #0 {
     48 entry:
     49   %0 = load i32, i32* @i2, align 4
     50   store i32 %0, i32* @i1, align 4
     51 ; CHECK-LABEL:	ifoo:
     52 ; CHECK:	lw	$[[REGi:[0-9]+]], 0(${{[0-9]+}})
     53 ; CHECK:	sw	$[[REGi]], 0(${{[0-9]+}})
     54 
     55   ret void
     56 }
     57 
     58 ; Function Attrs: nounwind
     59 define void @ffoo() #0 {
     60 entry:
     61   %0 = load float, float* @f2, align 4
     62   store float %0, float* @f1, align 4
     63 ; CHECK-LABEL:	ffoo:
     64 ; CHECK:	lwc1	$f[[REGf:[0-9]+]], 0(${{[0-9]+}})
     65 ; CHECK:	swc1	$f[[REGf]], 0(${{[0-9]+}})
     66 
     67 
     68   ret void
     69 }
     70 
     71 ; Function Attrs: nounwind
     72 define void @dfoo() #0 {
     73 entry:
     74   %0 = load double, double* @d2, align 8
     75   store double %0, double* @d1, align 8
     76 ; CHECK-LABEL:        dfoo:
     77 ; CHECK:        ldc1    $f[[REGd:[0-9]+]], 0(${{[0-9]+}})
     78 ; CHECK:        sdc1    $f[[REGd]], 0(${{[0-9]+}})
     79 ; CHECK:        .end    dfoo
     80   ret void
     81 }
     82 
     83 attributes #0 = { nounwind "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
     84 
     85 
     86