diff options
Diffstat (limited to 'toolchain-layer/recipes-devtools/gcc/gcc-4.6/linaro/gcc-4.6-linaro-r106873.patch')
-rw-r--r-- | toolchain-layer/recipes-devtools/gcc/gcc-4.6/linaro/gcc-4.6-linaro-r106873.patch | 80 |
1 files changed, 0 insertions, 80 deletions
diff --git a/toolchain-layer/recipes-devtools/gcc/gcc-4.6/linaro/gcc-4.6-linaro-r106873.patch b/toolchain-layer/recipes-devtools/gcc/gcc-4.6/linaro/gcc-4.6-linaro-r106873.patch deleted file mode 100644 index 5ce71a513..000000000 --- a/toolchain-layer/recipes-devtools/gcc/gcc-4.6/linaro/gcc-4.6-linaro-r106873.patch +++ /dev/null | |||
@@ -1,80 +0,0 @@ | |||
1 | 2012-02-24 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org> | ||
2 | |||
3 | LP:#922474 | ||
4 | gcc/ | ||
5 | * config/arm/sync.md (sync_lock_releasedi): Define. | ||
6 | (arm_sync_lock_releasedi): Likewise. | ||
7 | gcc/testsuite | ||
8 | Backport from mainline. | ||
9 | 2012-01-30 Greta Yorsh <Greta.Yorsh@arm.com> | ||
10 | * gcc.target/arm/di-longlong64-sync-withldrexd.c: Accept | ||
11 | new code generated for __sync_lock_release. | ||
12 | |||
13 | === modified file 'gcc/config/arm/arm.md' | ||
14 | --- old/gcc/config/arm/arm.md 2012-02-01 14:13:07 +0000 | ||
15 | +++ new/gcc/config/arm/arm.md 2012-02-22 18:37:56 +0000 | ||
16 | @@ -157,6 +157,7 @@ | ||
17 | (VUNSPEC_SYNC_OP 23) ; Represent a sync_<op> | ||
18 | (VUNSPEC_SYNC_NEW_OP 24) ; Represent a sync_new_<op> | ||
19 | (VUNSPEC_SYNC_OLD_OP 25) ; Represent a sync_old_<op> | ||
20 | + (VUNSPEC_SYNC_RELEASE 26) ; Represent a sync_lock_release. | ||
21 | ] | ||
22 | ) | ||
23 | |||
24 | |||
25 | === modified file 'gcc/config/arm/sync.md' | ||
26 | --- old/gcc/config/arm/sync.md 2011-10-14 15:47:15 +0000 | ||
27 | +++ new/gcc/config/arm/sync.md 2012-02-22 18:37:56 +0000 | ||
28 | @@ -494,3 +494,36 @@ | ||
29 | (set_attr "conds" "unconditional") | ||
30 | (set_attr "predicable" "no")]) | ||
31 | |||
32 | +(define_expand "sync_lock_releasedi" | ||
33 | + [(match_operand:DI 0 "memory_operand") | ||
34 | + (match_operand:DI 1 "s_register_operand")] | ||
35 | + "TARGET_HAVE_LDREXD && ARM_DOUBLEWORD_ALIGN && TARGET_HAVE_MEMORY_BARRIER" | ||
36 | + { | ||
37 | + struct arm_sync_generator generator; | ||
38 | + rtx tmp1 = gen_reg_rtx (DImode); | ||
39 | + generator.op = arm_sync_generator_omn; | ||
40 | + generator.u.omn = gen_arm_sync_lock_releasedi; | ||
41 | + arm_expand_sync (DImode, &generator, operands[1], operands[0], NULL, tmp1); | ||
42 | + DONE; | ||
43 | + } | ||
44 | +) | ||
45 | + | ||
46 | +(define_insn "arm_sync_lock_releasedi" | ||
47 | + [(set (match_operand:DI 2 "s_register_operand" "=&r") | ||
48 | + (unspec_volatile:DI [(match_operand:DI 1 "arm_sync_memory_operand" "+Q") | ||
49 | + (match_operand:DI 0 "s_register_operand" "r")] | ||
50 | + VUNSPEC_SYNC_RELEASE)) | ||
51 | + (clobber (reg:CC CC_REGNUM)) | ||
52 | + (clobber (match_scratch:SI 3 "=&r"))] | ||
53 | + "TARGET_HAVE_LDREXD && ARM_DOUBLEWORD_ALIGN && TARGET_HAVE_MEMORY_BARRIER" | ||
54 | + { | ||
55 | + return arm_output_sync_insn (insn, operands); | ||
56 | + } | ||
57 | + [(set_attr "sync_memory" "1") | ||
58 | + (set_attr "sync_result" "2") | ||
59 | + (set_attr "sync_t1" "2") | ||
60 | + (set_attr "sync_t2" "3") | ||
61 | + (set_attr "sync_new_value" "0") | ||
62 | + (set_attr "conds" "clob") | ||
63 | + (set_attr "predicable" "no")] | ||
64 | +) | ||
65 | |||
66 | === modified file 'gcc/testsuite/gcc.target/arm/di-longlong64-sync-withldrexd.c' | ||
67 | --- old/gcc/testsuite/gcc.target/arm/di-longlong64-sync-withldrexd.c 2011-10-14 15:56:32 +0000 | ||
68 | +++ new/gcc/testsuite/gcc.target/arm/di-longlong64-sync-withldrexd.c 2012-02-22 18:37:56 +0000 | ||
69 | @@ -10,8 +10,8 @@ | ||
70 | #include "../../gcc.dg/di-longlong64-sync-1.c" | ||
71 | |||
72 | /* We should be using ldrexd, strexd and no helpers or shorter ldrex. */ | ||
73 | -/* { dg-final { scan-assembler-times "\tldrexd" 46 } } */ | ||
74 | -/* { dg-final { scan-assembler-times "\tstrexd" 46 } } */ | ||
75 | +/* { dg-final { scan-assembler-times "\tldrexd" 48 } } */ | ||
76 | +/* { dg-final { scan-assembler-times "\tstrexd" 48 } } */ | ||
77 | /* { dg-final { scan-assembler-not "__sync_" } } */ | ||
78 | /* { dg-final { scan-assembler-not "ldrex\t" } } */ | ||
79 | /* { dg-final { scan-assembler-not "strex\t" } } */ | ||
80 | |||