diff options
author | Yvan Roux <yvan.roux@linaro.org> | 2015-08-23 22:08:32 +0200 |
---|---|---|
committer | Linaro Code Review <review@review.linaro.org> | 2015-08-27 12:40:46 +0000 |
commit | a45a61d16c2d0c077d98af4b64a81e4d563f9e88 (patch) | |
tree | cc20a8b4f7b792aade5865edfd94abd8873b8e00 | |
parent | 3bda08f14578edf63195af78fe401bbe3961e49b (diff) |
gcc/
Backport from trunk r222853.
2015-05-06 Yvan Roux <yvan.roux@linaro.org>
PR target/64208
* config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
alternatives.
gcc/testsuite/
Backport from trunk r222853.
2015-05-06 Yvan Roux <yvan.roux@linaro.org>
PR target/64208
* gcc.target/arm/pr64208.c: New test.
Change-Id: I85f76fcf2a11c0e08af8085248fdb62e647d933c
-rw-r--r-- | gcc/config/arm/iwmmxt.md | 4 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/arm/pr64208.c | 25 |
2 files changed, 27 insertions, 2 deletions
diff --git a/gcc/config/arm/iwmmxt.md b/gcc/config/arm/iwmmxt.md index fda3c2c53b6..d1a60ff9caf 100644 --- a/gcc/config/arm/iwmmxt.md +++ b/gcc/config/arm/iwmmxt.md @@ -107,8 +107,8 @@ ) (define_insn "*iwmmxt_arm_movdi" - [(set (match_operand:DI 0 "nonimmediate_di_operand" "=r, r, r, r, m,y,y,yr,y,yrUy,*w, r,*w,*w, *Uv") - (match_operand:DI 1 "di_operand" "rDa,Db,Dc,mi,r,y,yr,y,yrUy,y, r,*w,*w,*Uvi,*w"))] + [(set (match_operand:DI 0 "nonimmediate_di_operand" "=r, r, r, r, m,y,y,r, y,Uy,*w, r,*w,*w, *Uv") + (match_operand:DI 1 "di_operand" "rDa,Db,Dc,mi,r,y,r,y,Uy,y, r,*w,*w,*Uvi,*w"))] "TARGET_REALLY_IWMMXT && ( register_operand (operands[0], DImode) || register_operand (operands[1], DImode))" diff --git a/gcc/testsuite/gcc.target/arm/pr64208.c b/gcc/testsuite/gcc.target/arm/pr64208.c new file mode 100644 index 00000000000..96fd56d2854 --- /dev/null +++ b/gcc/testsuite/gcc.target/arm/pr64208.c @@ -0,0 +1,25 @@ +/* { dg-do compile } */ +/* { dg-skip-if "Test is specific to the iWMMXt" { arm*-*-* } { "-mcpu=*" } { "-mcpu=iwmmxt" } } */ +/* { dg-skip-if "Test is specific to the iWMMXt" { arm*-*-* } { "-mabi=*" } { "-mabi=iwmmxt" } } */ +/* { dg-skip-if "Test is specific to the iWMMXt" { arm*-*-* } { "-march=*" } { "-march=iwmmxt" } } */ +/* { dg-skip-if "Test is specific to ARM mode" { arm*-*-* } { "-mthumb" } { "" } } */ +/* { dg-require-effective-target arm32 } */ +/* { dg-require-effective-target arm_iwmmxt_ok } */ +/* { dg-options "-O1 -mcpu=iwmmxt" } */ + +long long x6(void); +void x7(long long, long long); +void x8(long long); + +int x0; +long long *x1; + +void x2(void) { + long long *x3 = x1; + while (x1) { + long long x4 = x0, x5 = x6(); + x7(x4, x5); + x8(x5); + *x3 = 0; + } +} |