ARM: Fix inline assembly (r21949) for Clang.
authorJacob.Bramley@arm.com <Jacob.Bramley@arm.com@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 24 Jun 2014 11:26:48 +0000 (11:26 +0000)
committerJacob.Bramley@arm.com <Jacob.Bramley@arm.com@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 24 Jun 2014 11:26:48 +0000 (11:26 +0000)
Add a 'c' predicate to the immediate syscall number. This tells the
compiler to omit the leading '#' that immediates usually have in ARM.
The GNU assembler tolerates "ldr r7, =#1234" but Clang does not.

BUG=V8:3403
LOG=N
R=bmeurer@chromium.org

Review URL: https://codereview.chromium.org/356463004

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21963 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

src/arm/cpu-arm.cc

index 78ab5f7..6412366 100644 (file)
@@ -52,7 +52,7 @@ void CPU::FlushICache(void* start, size_t size) {
                                   // r0 = beg
                                   // r1 = end
                                   // r2 = flags (0)
-    "  ldr r7, =%[scno]\n"        // r7 = syscall number
+    "  ldr r7, =%c[scno]\n"       // r7 = syscall number
     "  svc 0\n"
 
     "  pop {r7}\n"