[Openmcl-devel] CCL rebuild fails for current (and old) master on OSX 10.14

Bruce O'Neel bruce.oneel at pckswarms.ch
Tue Dec 17 07:49:27 PST 2019


Hi,  
  
There are two different problems with the assembler.  
  
The first is the the messages of the form "4294967291 shortened to 251"  
  
The second is the  suffix or operands invalid for `movq'  
  
  
The first one is some stupid signed/unsigned problem with the expression parser which you can see with the following snippet.  
  
as -Q -g -arch x86_64 bus1.s  


  


bus1.s:39:4294967291 shortened to 251  


  


  
  
where bus1.s is below and all the movq statements should be the same.  
  
/* assemble with as -Q -g -arch x86_64 bus.s */  


  


/* fails with assembler included with Xcode 11 -- Xcode 11.1.2 at least */  


  


/* works on Xcode 10.3 or earler */  


  


        node_size = 8  


        dnode_size = 16  


        num_subtag_bits = 8  


        subtag_shift = num_subtag_bits  


        ntagbits = 4  


        fulltag_misc = 13  


        misc_bias = fulltag_misc  


        fulltag_nodeheader_0 = 5  


misc_header_offset = -fulltag_misc
misc_header_offset_neg = fulltag_misc  


misc_data_offset = misc_header_offset+node_size /* first word of data    */  


misc_subtag_offset = misc_header_offset       /* low byte of header   */  


  


  


          


          


        .text  


        .align 2  


        .p2align 3  


  


        .globl junk  


junk:  


        /* movq %rax,misc_data_offset(%rsi) */  


/* should all be the same */  


        movq %rax,-5(%rsi)   


        movq %rax,-13+8(%rsi)   


        movq %rax,-13+node_size(%rsi)   


        movq %rax,-fulltag_misc+node_size(%rsi)   


        movq %rax,misc_header_offset_neg+node_size(%rsi)   


        movq %rax,-misc_header_offset_neg+node_size(%rsi)   
/* fails */  


        movq %rax,misc_header_offset+node_size(%rsi)   


        ret  


  


cheers  
  
bruce  



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clozure.com/pipermail/openmcl-devel/attachments/20191217/1b6ba93a/attachment.htm>


More information about the Openmcl-devel mailing list