Replace CpuSSE3 with CpuCX16 for cmpxchg16b
[deliverable/binutils-gdb.git] / gas / testsuite / gas / i386 / tlsnopic.s
index 1b51b3663e8aba5c33d93f1a8deeb89dcc73690f..3a8b794195dd283aff014664401422924f896e4a 100644 (file)
@@ -11,35 +11,44 @@ var2:       .long 33
        .globl  fn
        .type   fn,@function
 fn:
-       /* Main binary, no PIC  */
+       /* Main binary, no PIC.  */
 1:     movl    1b, %edx
        addl    $_GLOBAL_OFFSET_TABLE_+[.-1b], %edx
 
-       /* foo can be anywhere in startup TLS  */
+       /* foo can be anywhere in startup TLS.  */
        movl    %gs:0, %eax
        subl    foo@GOTTPOFF(%edx), %eax
-       /* %eax now contains &foo  */
+       /* %eax now contains &foo.  */
 
-       /* bar only in the main program  */
+       /* bar only in the main program.  */
        movl    %gs:0, %eax
        subl    $bar@TPOFF, %eax
-       /* %eax now contains &bar  */
+       /* %eax now contains &bar.  */
 
-       /* baz only in the main program  */
+       /* baz only in the main program.  */
        movl    %gs:0, %ecx
-       /* Arbitrary instructions in between  */
+       /* Arbitrary instructions in between.  */
        nop
        subl    $baz@TPOFF, %ecx
-       /* %ecx now contains &baz  */
+       /* %ecx now contains &baz.  */
 
-       /* var and var2 only in the main program  */
+       /* var and var2 only in the main program.  */
        movl    %gs:0, %ecx
-       /* Arbitrary instructions in between  */
+       /* Arbitrary instructions in between.  */
        nop
        nop
        leal    var@NTPOFF(%ecx), %eax
-       /* Arbitrary instructions in between  */
+       /* Arbitrary instructions in between.  */
        nop
        leal    var2@NTPOFF(%ecx), %edx
 
+       /* foo can be anywhere in startup TLS.  */
+       movl    foo@INDNTPOFF, %eax
+       movl    %gs:(%eax), %eax
+       /* %eax now contains foo.  */
+
+       movl    %gs:0, %eax
+       addl    foo@INDNTPOFF, %eax
+       /* %eax now contains &foo.  */
+
        ret
This page took 0.02493 seconds and 4 git commands to generate.